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>
|
TIGL_EXPORT | CTiglPointsToBSplineInterpolation (const Handle(TColgp_HArray1OfPnt) &points, 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 | CTiglPointsToBSplineInterpolation (const Handle(TColgp_HArray1OfPnt) &points, const std::vector< double > ¶meters, unsigned int maxDegree=3, bool continuousIfClosed=false) |
|
TIGL_EXPORT | CTiglPointsToBSplineInterpolation (const std::vector< gp_Pnt > &points, const std::vector< double > ¶meters, unsigned int maxDegree=3, bool continuousIfClosed=false) |
|
TIGL_EXPORT unsigned int | Degree () const |
| Returns the degree of the b-spline interpolation. More...
|
|
TIGL_EXPORT operator Handle() | Geom_BSplineCurve () const |
|
TIGL_EXPORT | Handle (Geom_BSplineCurve) Curve() const |
| Returns the interpolation curve. More...
|
|
TIGL_EXPORT const std::vector< double > & | Parameters () const |
| Returns the parameters of the interpolated points. More...
|
|
Implements the b-spline interpolation algorithm as described by Park (2000): Choosing nodes and knots in closed B-spline curve interpolation to point data.
◆ 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 |
|
) |
| |
◆ 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]
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.
◆ m_C2Continuous
bool tigl::CTiglPointsToBSplineInterpolation::m_C2Continuous |
|
private |
determines the continuous closing of curve
◆ m_degree
int tigl::CTiglPointsToBSplineInterpolation::m_degree |
|
private |
◆ m_params
std::vector<double> tigl::CTiglPointsToBSplineInterpolation::m_params |
|
private |
The documentation for this class was generated from the following file: