$search
#include <BSplineND.h>
Public Member Functions | |
BSplineND () | |
void | eval (double dPos, PointND &point) |
double | getMaxdPos () const |
bool | ipoWithConstSampleDist (double dIpoDist, std::vector< PointND > &ipoVec) |
bool | ipoWithNumSamples (int iNumPts, std::vector< PointND > &ipoVec) |
void | setCtrlPoints (const std::vector< PointND > &ctrlPointVec) |
~BSplineND () | |
Private Member Functions | |
double | evalBasis (double t, unsigned int i, int n) |
Private Attributes | |
std::vector< PointND > | m_CtrlPointVec |
double | m_dLength |
double | m_iGrad |
std::vector< double > | m_KnotVec |
Implements a BSpline curve as a template class. a PointND type needs the following operators: operator=, copy constructor, p1 += p2, p1 * scalar there needs to be a function Distance(p1,p2) there needs to be a member function p1.zero()
Definition at line 37 of file BSplineND.h.
Definition at line 80 of file BSplineND.h.
Definition at line 88 of file BSplineND.h.
void BSplineND< PointND >::eval | ( | double | dPos, | |
PointND & | point | |||
) | [inline] |
Definition at line 150 of file BSplineND.h.
double BSplineND< PointND >::evalBasis | ( | double | t, | |
unsigned int | i, | |||
int | n | |||
) | [inline, private] |
Definition at line 304 of file BSplineND.h.
double BSplineND< PointND >::getMaxdPos | ( | ) | const [inline] |
Definition at line 54 of file BSplineND.h.
bool BSplineND< PointND >::ipoWithConstSampleDist | ( | double | dIpoDist, | |
std::vector< PointND > & | ipoVec | |||
) | [inline] |
Definition at line 167 of file BSplineND.h.
bool BSplineND< PointND >::ipoWithNumSamples | ( | int | iNumPts, | |
std::vector< PointND > & | ipoVec | |||
) | [inline] |
Definition at line 274 of file BSplineND.h.
void BSplineND< PointND >::setCtrlPoints | ( | const std::vector< PointND > & | ctrlPointVec | ) | [inline] |
Definition at line 94 of file BSplineND.h.
std::vector<PointND> BSplineND< PointND >::m_CtrlPointVec [private] |
Definition at line 61 of file BSplineND.h.
Definition at line 65 of file BSplineND.h.
Definition at line 58 of file BSplineND.h.
Definition at line 63 of file BSplineND.h.