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