3.4.0
tigl::CTiglArcLengthReparameterization Class Reference

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
 

Detailed Description

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

Constructor & Destructor Documentation

◆ CTiglArcLengthReparameterization()

TIGL_EXPORT tigl::CTiglArcLengthReparameterization::CTiglArcLengthReparameterization ( )

Member Function Documentation

◆ Handle()

tigl::CTiglArcLengthReparameterization::Handle ( Geom_BSplineCurve  )
private

◆ init()

TIGL_EXPORT void tigl::CTiglArcLengthReparameterization::init ( const Handle(Geom_BSplineCurve)  curve,
double  accuracy = 1e-5 
)

◆ isInitialized()

TIGL_EXPORT bool tigl::CTiglArcLengthReparameterization::isInitialized ( ) const

◆ parameter()

TIGL_EXPORT double tigl::CTiglArcLengthReparameterization::parameter ( double  arcLength) const

Returns the curve parameter for the given arc length.

◆ totalLength()

TIGL_EXPORT double tigl::CTiglArcLengthReparameterization::totalLength ( ) const

Field Documentation

◆ _isInitialized

bool tigl::CTiglArcLengthReparameterization::_isInitialized
private

◆ _totalLength

double tigl::CTiglArcLengthReparameterization::_totalLength
private

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