MBSim

Project Page
Public Member Functions | Protected Member Functions | Protected Attributes
MBSim::NurbsCurve Class Reference

class that copies the nurbs++-library using the fmatvec as a basis-math-library More...

#include <nurbs_curve.h>

List of all members.

Public Member Functions

 NurbsCurve ()
 standard constructor
int degree () const
 < a reference to the degree of the curve
const fmatvec::MatVx4 & ctrlPnts () const
 < a reference to the vector of control points
const fmatvec::MatVx4 ctrlPnts (int i) const
 < a reference to one of the control points
const fmatvec::Vec & knot () const
 < a reference to the vector of knots
double knot (int i) const
 < the i-th knot
virtual fmatvec::HPoint< 3 > operator() (double u) const
fmatvec::HPoint< 3 > hpointAt (double u) const
 < calls operator()
fmatvec::HPoint< 3 > hpointAt (double u, int span) const
fmatvec::Point< 3 > pointAt (double u) const
void deriveAtH (double u, int, fmatvec::MatVx4 &ders) const
fmatvec::Point< 3 > derive3D (double u, int d) const
fmatvec::HPoint< 3 > derive (double u, int d) const
fmatvec::Point< 3 > normal (double u, const fmatvec::Point< 3 > &v) const
fmatvec::HPoint< 3 > firstD (double u) const
fmatvec::HPoint< 3 > firstD (double u, int span) const
fmatvec::Point< 3 > firstDn (double u) const
fmatvec::Point< 3 > firstDn (double u, int span) const
void globalInterp (const fmatvec::MatVx3 &Q, double uMin, double uMax, int d, bool updateLater=false)
 do global interpolation for given interpolation-points list and knots with the given degree
void globalInterpClosed (const fmatvec::MatVx3 &Q, double uMin, double uMax, int d, bool updateLater=false)
 closed interpolation of the given (not yet wrapped) points at the given knot vector "ub" in a degree of "d"
void update (const fmatvec::MatVx3 &Q)
 update the control points with the same matrix as before

Protected Member Functions

void resize (int n, int Deg)
void knotAveraging (const std::vector< double > &uk, int deg)
void updateUVecs (double uMin, double uMax)
void knotAveragingClosed (const std::vector< double > &uk, int deg)
void updateUVecsClosed (double uMin, double uMax)
int findSpan (double u) const

Protected Attributes

fmatvec::MatVx4 P
fmatvec::SqrMat inverse
fmatvec::Vec u
fmatvec::Vec U
int deg

Detailed Description

class that copies the nurbs++-library using the fmatvec as a basis-math-library


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