Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Static Public Member Functions
ShapeCustom_Curve2d Class Reference

Converts curve2d to analytical form with given precision or simplify curve2d. More...

#include <ShapeCustom_Curve2d.hxx>

Static Public Member Functions

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_LineConvertToLine2d (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.
 

Detailed Description

Converts curve2d to analytical form with given precision or simplify curve2d.

Member Function Documentation

◆ ConvertToLine2d()

static 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()

static 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()

static bool ShapeCustom_Curve2d::SimplifyBSpline2d ( occ::handle< Geom2d_BSplineCurve > & theBSpline2d,
const double theTolerance )
static

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: