MBSim

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

A class to represent a NURBS surface. More...

List of all members.

Public Member Functions

 NurbsSurface (const NurbsSurface &nS)
const Vec & knotU () const
 < A reference to the U knot vector
const Vec & knotV () const
 < A reference to the V knot vector
double knotU (int i) const
 < Returns the i-th knot from U
double knotV (int i) const
 < Returns the i-th knot from V
const GeneralMatrix< Vec4 > & ctrlPnts () const
 < A reference to the control points
const fmatvec::Vec4 ctrlPnts (int i, int j) const
 < A reference to the control point at (i,j)
int degreeU () const
 < A reference to the degree in U of the surface
int degreeV () const
 < A reference to the degree in V of the surface
virtual NurbsSurface & operator= (const NurbsSurface &)
void resize (int Pu, int Pv, int DegU, int DegV)
fmatvec::HPoint< 3 > operator() (double u, double v) const
fmatvec::Point< 3 > pointAt (double u, double v) const
 Projects the point in the normal space.
void deriveAt (double u, double v, int d, GeneralMatrix< Vec3 > &skl) const
void deriveAtH (double u, double v, int d, GeneralMatrix< Vec4 > &skl) const
Vec3 normal (double u, double v) const
void globalInterp (const GeneralMatrix< fmatvec::Vec3 > &Q, int DegU, int DegV)
void globalInterp (const GeneralMatrix< fmatvec::Vec3 > &Q, const Vec &uk, const Vec &vk, int DegU, int DegV)
void globalInterpClosedU (const GeneralMatrix< fmatvec::Vec3 > &Q, int DegU, int DegV)
void globalInterpClosedU (const GeneralMatrix< fmatvec::Vec3 > &Q, const Vec &uk, const Vec &vk, int DegU, int DegV)

Protected Member Functions

void findSpan (double u, double v, int spanU, int spanV) const
int findSpanU (double u) const
int findSpanV (double v) const
int findMultU (int r) const
int findMultV (int r) const

Protected Attributes

fmatvec::Vec U
 the U knot vector
fmatvec::Vec V
 the V knot vector
GeneralMatrix< fmatvec::Vec4 > P
 The matrix of control points.
int degU
 the degree of the surface in U
int degV
 the degree of the surface in V
Mat InverseU
 The matrix for the computation of the control points in U-direction.
Mat InverseV
 The matrix for the computation of the control points in V-direction.

Detailed Description

A class to represent a NURBS surface.

The NURBS surface is composed of points in homogenous space. It can have any degree in both the u and the v direction.


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