Open CASCADE Technology
7.7.0
|
#include <GeomConvert_CurveToAnaCurve.hxx>
Public Member Functions | |
GeomConvert_CurveToAnaCurve () | |
GeomConvert_CurveToAnaCurve (const Handle< Geom_Curve > &C) | |
void | Init (const Handle< Geom_Curve > &C) |
Standard_Boolean | ConvertToAnalytical (const Standard_Real theTol, Handle< Geom_Curve > &theResultCurve, const Standard_Real F, const Standard_Real L, Standard_Real &newF, Standard_Real &newL) |
Converts me to analytical if possible with given tolerance. The new first and last parameters are returned to newF, newL. More... | |
Standard_Real | Gap () const |
Returns maximal deviation of converted surface from the original one computed by last call to ConvertToAnalytical. More... | |
GeomConvert_ConvType | GetConvType () const |
Returns conversion type. More... | |
void | SetConvType (const GeomConvert_ConvType theConvType) |
Sets type of convertion. More... | |
GeomAbs_CurveType | GetTarget () const |
Returns target curve type. More... | |
void | SetTarget (const GeomAbs_CurveType theTarget) |
Sets target curve type. More... | |
Static Public Member Functions | |
static Handle< Geom_Curve > | ComputeCurve (const Handle< Geom_Curve > &curve, const Standard_Real tolerance, const Standard_Real c1, const Standard_Real c2, Standard_Real &cf, Standard_Real &cl, Standard_Real &theGap, const GeomConvert_ConvType theCurvType=GeomConvert_MinGap, const GeomAbs_CurveType theTarget=GeomAbs_Line) |
static Handle< Geom_Curve > | ComputeCircle (const Handle< Geom_Curve > &curve, const Standard_Real tolerance, const Standard_Real c1, const Standard_Real c2, Standard_Real &cf, Standard_Real &cl, Standard_Real &Deviation) |
Tries to convert the given curve to circle with given tolerance. Returns NULL curve if conversion is not possible. More... | |
static Handle< Geom_Curve > | ComputeEllipse (const Handle< Geom_Curve > &curve, const Standard_Real tolerance, const Standard_Real c1, const Standard_Real c2, Standard_Real &cf, Standard_Real &cl, Standard_Real &Deviation) |
Tries to convert the given curve to ellipse with given tolerance. Returns NULL curve if conversion is not possible. More... | |
static Handle< Geom_Line > | ComputeLine (const Handle< Geom_Curve > &curve, const Standard_Real tolerance, const Standard_Real c1, const Standard_Real c2, Standard_Real &cf, Standard_Real &cl, Standard_Real &Deviation) |
Tries to convert the given curve to line with given tolerance. Returns NULL curve if conversion is not possible. More... | |
static Standard_Boolean | IsLinear (const TColgp_Array1OfPnt &aPoints, const Standard_Real tolerance, Standard_Real &Deviation) |
Returns true if the set of points is linear with given tolerance. More... | |
static gp_Lin | GetLine (const gp_Pnt &P1, const gp_Pnt &P2, Standard_Real &cf, Standard_Real &cl) |
Creates line on two points. Resulting parameters returned. More... | |
static Standard_Boolean | GetCircle (gp_Circ &Circ, const gp_Pnt &P0, const gp_Pnt &P1, const gp_Pnt &P2) |
Creates circle on points. Returns true if OK. More... | |
GeomConvert_CurveToAnaCurve::GeomConvert_CurveToAnaCurve | ( | ) |
GeomConvert_CurveToAnaCurve::GeomConvert_CurveToAnaCurve | ( | const Handle< Geom_Curve > & | C | ) |
|
static |
Tries to convert the given curve to circle with given tolerance. Returns NULL curve if conversion is not possible.
|
static |
|
static |
Tries to convert the given curve to ellipse with given tolerance. Returns NULL curve if conversion is not possible.
|
static |
Tries to convert the given curve to line with given tolerance. Returns NULL curve if conversion is not possible.
Standard_Boolean GeomConvert_CurveToAnaCurve::ConvertToAnalytical | ( | const Standard_Real | theTol, |
Handle< Geom_Curve > & | theResultCurve, | ||
const Standard_Real | F, | ||
const Standard_Real | L, | ||
Standard_Real & | newF, | ||
Standard_Real & | newL | ||
) |
Converts me to analytical if possible with given tolerance. The new first and last parameters are returned to newF, newL.
|
inline |
Returns maximal deviation of converted surface from the original one computed by last call to ConvertToAnalytical.
|
static |
Creates circle on points. Returns true if OK.
|
inline |
Returns conversion type.
|
static |
Creates line on two points. Resulting parameters returned.
|
inline |
Returns target curve type.
void GeomConvert_CurveToAnaCurve::Init | ( | const Handle< Geom_Curve > & | C | ) |
|
static |
Returns true if the set of points is linear with given tolerance.
|
inline |
Sets type of convertion.
|
inline |
Sets target curve type.