Open CASCADE Technology 6.6.0
Static Public Member Functions
ShapeCustom_Curve2d Class Reference

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

#include <ShapeCustom_Curve2d.hxx>

Static Public Member Functions

static Standard_Boolean IsLinear (const TColgp_Array1OfPnt2d &thePoles, const Standard_Real theTolerance, Standard_Real &theDeviation)
 Check if poleses is in the plane with given precision
Returns false if no.

static Handle_Geom2d_Line ConvertToLine2d (const Handle< Geom2d_Curve > &theCurve, const Standard_Real theFirstIn, const Standard_Real theLastIn, const Standard_Real theTolerance, Standard_Real &theNewFirst, Standard_Real &theNewLast, Standard_Real &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 Standard_Boolean SimplifyBSpline2d (Handle< Geom2d_BSplineCurve > &theBSpline2d, const Standard_Real 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


Member Function Documentation

static Handle_Geom2d_Line ShapeCustom_Curve2d::ConvertToLine2d ( const Handle< Geom2d_Curve > &  theCurve,
const Standard_Real  theFirstIn,
const Standard_Real  theLastIn,
const Standard_Real  theTolerance,
Standard_Real theNewFirst,
Standard_Real theNewLast,
Standard_Real theDeviation 
) [static]
static Standard_Boolean ShapeCustom_Curve2d::IsLinear ( const TColgp_Array1OfPnt2d thePoles,
const Standard_Real  theTolerance,
Standard_Real theDeviation 
) [static]
static Standard_Boolean ShapeCustom_Curve2d::SimplifyBSpline2d ( Handle< Geom2d_BSplineCurve > &  theBSpline2d,
const Standard_Real  theTolerance 
) [static]

The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines