3.5.0
Loading...
Searching...
No Matches
tigl::CTiglPointsToBSplineInterpolation Class Reference

Implements the b-spline interpolation algorithm as described by Park (2000): Choosing nodes and knots in closed B-spline curve interpolation to point data. More...

#include <CTiglPointsToBSplineInterpolation.h>

Public Member Functions

TIGL_EXPORT CTiglPointsToBSplineInterpolation (const Handle_TColgp_HArray1OfPnt &points, const std::vector< double > &parameters, unsigned int maxDegree=3, bool continuousIfClosed=false)
 
TIGL_EXPORT CTiglPointsToBSplineInterpolation (const Handle_TColgp_HArray1OfPnt &points, unsigned int maxDegree=3, bool continuousIfClosed=false)
 
TIGL_EXPORT CTiglPointsToBSplineInterpolation (const std::vector< gp_Pnt > &points, const std::vector< double > &parameters, unsigned int maxDegree=3, bool continuousIfClosed=false)
 
TIGL_EXPORT CTiglPointsToBSplineInterpolation (const std::vector< gp_Pnt > &points, unsigned int maxDegree=3, bool continuousIfClosed=false)
 
TIGL_EXPORT Handle_Geom_BSplineCurve Curve () const
 Returns the interpolation curve.
 
TIGL_EXPORT unsigned int Degree () const
 Returns the degree of the b-spline interpolation.
 
TIGL_EXPORT operator Handle_Geom_BSplineCurve () const
 
TIGL_EXPORT const std::vector< double > & Parameters () const
 Returns the parameters of the interpolated points.
 

Private Member Functions

bool isClosed () const
 
double maxDistanceOfBoundingBox (const TColgp_Array1OfPnt &points) const
 computes the maximum distance of the given points TODO: move to bsplinealgorithms::scale
 
bool needsShifting () const
 

Private Attributes

bool m_C2Continuous
 determines the continuous closing of curve
 
int m_degree
 degree of the B-spline
 
std::vector< double > m_params
 
const Handle_TColgp_HArray1OfPnt m_pnts
 curve coordinates to be fitted by the B-spline
 

Detailed Description

Implements the b-spline interpolation algorithm as described by Park (2000): Choosing nodes and knots in closed B-spline curve interpolation to point data.

Constructor & Destructor Documentation

◆ CTiglPointsToBSplineInterpolation() [1/4]

TIGL_EXPORT tigl::CTiglPointsToBSplineInterpolation::CTiglPointsToBSplineInterpolation ( const Handle_TColgp_HArray1OfPnt & points,
unsigned int maxDegree = 3,
bool continuousIfClosed = false )

◆ CTiglPointsToBSplineInterpolation() [2/4]

TIGL_EXPORT tigl::CTiglPointsToBSplineInterpolation::CTiglPointsToBSplineInterpolation ( const std::vector< gp_Pnt > & points,
unsigned int maxDegree = 3,
bool continuousIfClosed = false )

◆ CTiglPointsToBSplineInterpolation() [3/4]

TIGL_EXPORT tigl::CTiglPointsToBSplineInterpolation::CTiglPointsToBSplineInterpolation ( const Handle_TColgp_HArray1OfPnt & points,
const std::vector< double > & parameters,
unsigned int maxDegree = 3,
bool continuousIfClosed = false )

◆ CTiglPointsToBSplineInterpolation() [4/4]

TIGL_EXPORT tigl::CTiglPointsToBSplineInterpolation::CTiglPointsToBSplineInterpolation ( const std::vector< gp_Pnt > & points,
const std::vector< double > & parameters,
unsigned int maxDegree = 3,
bool continuousIfClosed = false )

Member Function Documentation

◆ Curve()

TIGL_EXPORT Handle_Geom_BSplineCurve tigl::CTiglPointsToBSplineInterpolation::Curve ( ) const

Returns the interpolation curve.

◆ Degree()

TIGL_EXPORT unsigned int tigl::CTiglPointsToBSplineInterpolation::Degree ( ) const

Returns the degree of the b-spline interpolation.

◆ isClosed()

bool tigl::CTiglPointsToBSplineInterpolation::isClosed ( ) const
private

◆ maxDistanceOfBoundingBox()

double tigl::CTiglPointsToBSplineInterpolation::maxDistanceOfBoundingBox ( const TColgp_Array1OfPnt & points) const
private

computes the maximum distance of the given points TODO: move to bsplinealgorithms::scale

◆ needsShifting()

bool tigl::CTiglPointsToBSplineInterpolation::needsShifting ( ) const
private

◆ operator Handle_Geom_BSplineCurve()

TIGL_EXPORT tigl::CTiglPointsToBSplineInterpolation::operator Handle_Geom_BSplineCurve ( ) const

◆ Parameters()

TIGL_EXPORT const std::vector< double > & tigl::CTiglPointsToBSplineInterpolation::Parameters ( ) const

Returns the parameters of the interpolated points.

Field Documentation

◆ m_C2Continuous

bool tigl::CTiglPointsToBSplineInterpolation::m_C2Continuous
private

determines the continuous closing of curve

◆ m_degree

int tigl::CTiglPointsToBSplineInterpolation::m_degree
private

degree of the B-spline

◆ m_params

std::vector<double> tigl::CTiglPointsToBSplineInterpolation::m_params
private

◆ m_pnts

const Handle_TColgp_HArray1OfPnt tigl::CTiglPointsToBSplineInterpolation::m_pnts
private

curve coordinates to be fitted by the B-spline


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