Converts curve2d to analytical form with given precision or simplify curve2d.
More...
#include <ShapeCustom_Curve2d.hxx>
|
| static bool | IsLinear (const NCollection_Array1< gp_Pnt2d > &thePoles, const double theTolerance, double &theDeviation) |
| | Check if poleses is in the plane with given precision Returns false if no.
|
| static occ::handle< Geom2d_Line > | ConvertToLine2d (const occ::handle< Geom2d_Curve > &theCurve, const double theFirstIn, const double theLastIn, const double theTolerance, double &theNewFirst, double &theNewLast, double &theDeviation) |
| | Try to convert BSpline2d or Bezier2d to line 2d only if it is linear. Recalculate first and last parameters. Returns line2d or null curve2d.
|
| static bool | SimplifyBSpline2d (occ::handle< Geom2d_BSplineCurve > &theBSpline2d, const double theTolerance) |
| | Try to remove knots from bspline where local derivatives are the same. Remove knots with given precision. Returns false if Bsplien was not modified.
|
Converts curve2d to analytical form with given precision or simplify curve2d.
◆ ConvertToLine2d()
| occ::handle< Geom2d_Line > ShapeCustom_Curve2d::ConvertToLine2d |
( |
const occ::handle< Geom2d_Curve > & | theCurve, |
|
|
const double | theFirstIn, |
|
|
const double | theLastIn, |
|
|
const double | theTolerance, |
|
|
double & | theNewFirst, |
|
|
double & | theNewLast, |
|
|
double & | theDeviation ) |
|
static |
Try to convert BSpline2d or Bezier2d to line 2d only if it is linear. Recalculate first and last parameters. Returns line2d or null curve2d.
◆ IsLinear()
| bool ShapeCustom_Curve2d::IsLinear |
( |
const NCollection_Array1< gp_Pnt2d > & | thePoles, |
|
|
const double | theTolerance, |
|
|
double & | theDeviation ) |
|
static |
Check if poleses is in the plane with given precision Returns false if no.
◆ SimplifyBSpline2d()
Try to remove knots from bspline where local derivatives are the same. Remove knots with given precision. Returns false if Bsplien was not modified.
The documentation for this class was generated from the following file: