This provides an algorithm for an arc-length reparameterization of a bspline curve. More...
#include <CTiglArcLengthReparameterization.h>
Public Member Functions | |
TIGL_EXPORT | CTiglArcLengthReparameterization () |
TIGL_EXPORT void | init (const Handle(Geom_BSplineCurve) curve, double accuracy=1e-5) |
TIGL_EXPORT bool | isInitialized () const |
TIGL_EXPORT double | parameter (double arcLength) const |
Returns the curve parameter for the given arc length. More... | |
TIGL_EXPORT double | totalLength () const |
Private Member Functions | |
Handle (Geom_BSplineCurve) _reparCurve | |
Private Attributes | |
bool | _isInitialized |
double | _totalLength |
This provides an algorithm for an arc-length reparameterization of a bspline curve.
This class uses the techniques from the paper Peterson J. Arc Length Parameterization of Spline Curves
TIGL_EXPORT tigl::CTiglArcLengthReparameterization::CTiglArcLengthReparameterization | ( | ) |
|
private |
TIGL_EXPORT void tigl::CTiglArcLengthReparameterization::init | ( | const Handle(Geom_BSplineCurve) | curve, |
double | accuracy = 1e-5 |
||
) |
TIGL_EXPORT bool tigl::CTiglArcLengthReparameterization::isInitialized | ( | ) | const |
TIGL_EXPORT double tigl::CTiglArcLengthReparameterization::parameter | ( | double | arcLength | ) | const |
Returns the curve parameter for the given arc length.
TIGL_EXPORT double tigl::CTiglArcLengthReparameterization::totalLength | ( | ) | const |
|
private |
|
private |