3.5.0-rc1
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 unsigned int Degree () const
 Returns the degree of the b-spline interpolation.
TIGL_EXPORT operator Handle Geom_BSplineCurve () const
TIGL_EXPORT Handle (Geom_BSplineCurve) Curve() const
 Returns the interpolation curve.
TIGL_EXPORT const std::vector< double > & Parameters () const
 Returns the parameters of the interpolated points.

Private Member Functions

const Handle (TColgp_HArray1OfPnt) m_pnts
 curve coordinates to be fitted by the B-spline
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

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

◆ Degree()

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

Returns the degree of the b-spline interpolation.

◆ Geom_BSplineCurve()

TIGL_EXPORT operator Handle tigl::CTiglPointsToBSplineInterpolation::Geom_BSplineCurve ( ) const

◆ Handle() [1/2]

TIGL_EXPORT tigl::CTiglPointsToBSplineInterpolation::Handle ( Geom_BSplineCurve ) const

Returns the interpolation curve.

◆ Handle() [2/2]

const tigl::CTiglPointsToBSplineInterpolation::Handle ( TColgp_HArray1OfPnt )
private

curve coordinates to be fitted by the B-spline

◆ 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

◆ 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

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