OCC Main Page | ModelingAlgorithms | Toolkits | Packages | Class Hierarchy | Data Structures | File List | Data Fields | Globals

ModelingAlgorithms
TKShHealing
ShapeCustom


ShapeCustom_Curve2d Class Reference

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

#include <ShapeCustom_Curve2d.hxx>


Public Member Functions

void * operator new (size_t, void *anAddress)
void * operator new (size_t size)
void operator delete (void *anAddress)

Static Public Member Functions

static Standard_EXPORT 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 Standard_EXPORT 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_EXPORT 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 Standard_EXPORT 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_EXPORT Standard_Boolean ShapeCustom_Curve2d::IsLinear const TColgp_Array1OfPnt2d &  thePoles,
const Standard_Real  theTolerance,
Standard_Real &  theDeviation
[static]
 

void ShapeCustom_Curve2d::operator delete void *  anAddress  )  [inline]
 

void* ShapeCustom_Curve2d::operator new size_t  size  )  [inline]
 

void* ShapeCustom_Curve2d::operator new size_t  ,
void *  anAddress
[inline]
 

static Standard_EXPORT 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:
Generated on Mon Aug 25 13:42:36 2008 for OpenCASCADE by  doxygen 1.4.1