3.4.0
tigl::CWireToCurve Class Reference

This class converts a TopoDS_Wire objects to a bspline curve by converting all edges to b-spline concatenating all splines to a resulting b-spline. More...

#include <CWireToCurve.h>

Public Member Functions

TIGL_EXPORT CWireToCurve (const TopoDS_Wire &, bool parByLength=true, double tolerance=1e-6)
 CWireToCurve constructor. More...
 
TIGL_EXPORT operator Handle() Geom_BSplineCurve ()
 Returns the resulting spline Returns NULL Handle in case of an error. More...
 
TIGL_EXPORT Handle (Geom_BSplineCurve) curve()
 

Private Attributes

bool _parByLength
 
double _tolerance
 
TopoDS_Wire _wire
 

Detailed Description

This class converts a TopoDS_Wire objects to a bspline curve by converting all edges to b-spline concatenating all splines to a resulting b-spline.

Constructor & Destructor Documentation

◆ CWireToCurve()

TIGL_EXPORT tigl::CWireToCurve::CWireToCurve ( const TopoDS_Wire &  ,
bool  parByLength = true,
double  tolerance = 1e-6 
)

CWireToCurve constructor.

Parameters
parByLengthIf true, the resulting B-Spline parameter sub-ranges will be proportional to the sub-curve lengths. I.e. a long edge will have a larger parameter range than a short one. If false, the sub-parameter ranges will be the same as before, i.e. a curve with a large parameter range will result in a large range in the resulting curve.
toleranceMaximum distance of the connection point of two edges. If distance is larger than tolerance, the class returns a NULL Handle.

Member Function Documentation

◆ Geom_BSplineCurve()

TIGL_EXPORT operator Handle() tigl::CWireToCurve::Geom_BSplineCurve ( )

Returns the resulting spline Returns NULL Handle in case of an error.

◆ Handle()

TIGL_EXPORT tigl::CWireToCurve::Handle ( Geom_BSplineCurve  )

Field Documentation

◆ _parByLength

bool tigl::CWireToCurve::_parByLength
private

◆ _tolerance

double tigl::CWireToCurve::_tolerance
private

◆ _wire

TopoDS_Wire tigl::CWireToCurve::_wire
private

The documentation for this class was generated from the following file: