|
|
| NurbsSurface () |
| | default constructor
|
| |
|
| NurbsSurface (const NurbsSurface &nS) |
| | copy constructor
|
| |
|
| NurbsSurface (int DegU, int DegV, const fmatvec::VecV &Uk, const fmatvec::VecV &Vk, fmatvec::GeneralMatrix< fmatvec::Vec4 > &Q) |
| | constructor
|
| |
|
virtual | ~NurbsSurface ()=default |
| | Empty desctructor.
|
| |
|
const fmatvec::VecV & | knotU () const |
| | A reference to the U knot vector.
|
| |
|
const fmatvec::VecV & | 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 fmatvec::GeneralMatrix
< fmatvec::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.
|
| |
|
void | setKnotU (const fmatvec::VecV &U_) |
| |
|
void | setKnotV (const fmatvec::VecV &V_) |
| |
|
void | setCtrlPnts (const fmatvec::GeneralMatrix< fmatvec::Vec4 > &P_) |
| |
|
void | setDegreeU (int degU_) |
| |
|
void | setDegreeV (int degV_) |
| |
| virtual NurbsSurface & | operator= (const NurbsSurface &) |
| | NurbsSurface assignment. More...
|
| |
| void | resize (int Pu, int Pv, int DegU, int DegV) |
| | Resize the surface. More...
|
| |
| fmatvec::HPoint< 3 > | operator() (double u, double v) const |
| | Returns the point on the surface at u,v. More...
|
| |
| fmatvec::Point< 3 > | pointAt (double u, double v) const |
| | rojects the point in the normal space More...
|
| |
| void | deriveAt (double u, double v, int d, fmatvec::GeneralMatrix< fmatvec::Vec3 > &skl) const |
| | Find the non-zero basis functions in the U and V direction. More...
|
| |
| void | deriveAtH (double u, double v, int d, fmatvec::GeneralMatrix< fmatvec::Vec4 > &skl) const |
| | computes the point and the derivatives of degree d and below at (u,v) More...
|
| |
| fmatvec::Vec3 | normal (double u, double v) const |
| | Computes the normal of the surface at (u,v) More...
|
| |
| void | globalInterp (const fmatvec::GeneralMatrix< fmatvec::Vec3 > &Q, int DegU, int DegV) |
| | Generates a surface using global interpolation. More...
|
| |
|
void | globalInterp (const fmatvec::GeneralMatrix< fmatvec::Vec3 > &Q, const fmatvec::VecV &uk, const fmatvec::VecV &vk, int DegU, int DegV) |
| |
| void | globalInterpClosedU (const fmatvec::GeneralMatrix< fmatvec::Vec3 > &Q, int DegU, int DegV) |
| | Generates a closed surface using global interpolation. More...
|
| |
|
void | globalInterpClosedU (const fmatvec::GeneralMatrix< fmatvec::Vec3 > &Q, const fmatvec::VecV &uk, const fmatvec::VecV &vk, int DegU, int DegV) |
| |
|
void | globalInterpH (const fmatvec::GeneralMatrix< fmatvec::Vec4 > &Q, int DegU, int DegV, Method method=chordLength) |
| |
|
void | globalInterpClosedUH (const fmatvec::GeneralMatrix< fmatvec::Vec4 > &Q, int DegU, int DegV, Method method=chordLength) |
| |
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.
| void MBSim::NurbsSurface::deriveAt |
( |
double |
u, |
|
|
double |
v, |
|
|
int |
d, |
|
|
fmatvec::GeneralMatrix< fmatvec::Vec3 > & |
skl |
|
) |
| const |
Find the non-zero basis functions in the U and V direction.
- Parameters
-
| u | the u parametric value |
| v | the v parametric value |
| spanU | the span of u |
| spanV | the span of v |
| Nu | the vector containing the U non-zero basis functions |
| Nv | the vector containing the V non-zero basis functions |
- Author
- Philippe Lavoie
- Date
- 24 January, 1997
Finds the non-zero basis function in the U direction
- Parameters
-
| u | the u parametric value |
| span | the span of u |
| N | the vector containing the basis functions |
- Author
- Philippe Lavoie
- Date
- 24 January, 1997
Finds the non-zero basis function in the V direction
- Parameters
-
| v | the v parametric value |
| span | the span of v |
| N | the vector containing the basis functions |
- Author
- Philippe Lavoie
- Date
- 24 January, 1997
Computes the point and the derivatives of degree d and below at (u,v)
Computes the matrix of derivatives at u,v . The value of skl(k,l) represents the derivative of the surface S(u,v) with respect to u, k times and to v, l times.
- Parameters
-
| u | the u parametric value |
| v | the v parametric value |
| d | the derivative is computed up to and including to this value |
| skl | the matrix containing the derivatives |
- Author
- Philippe Lavoie
- Date
- 24 January, 1997
| void MBSim::NurbsSurface::findSpan |
( |
double |
u, |
|
|
double |
v, |
|
|
int |
spanU, |
|
|
int |
spanV |
|
) |
| const |
|
protected |
Finds the multiplicity of a knot in the U knot.
- Parameters
-
- Returns
- the multiplicity of the knot
- Warning
- r must be a valid U knot index
- Author
- Philippe Lavoie
- Date
- 24 January, 1997
finds the multiplicity of a knot in the V knot
- Parameters
-
- Returns
- the multiplicity of the V knot
- Warning
- r must be a valid knot index
- Author
- Philippe Lavoie
- Date
- 24 January, 1997
finds the span in the U and V direction
Finds the span in the U and V direction. The spanU is the index k for which the parameter u is valid in the [u_k,u_{k+1}] range. The spanV is the index k for which the parameter v is valid in the [v_k,v_{k+1}] range.
- Parameters
-
| u | find the U span for this parametric value |
| v | find the V span for this parametric value |
| spanU | the U span |
| spanV | the V span |
- Author
- Philippe Lavoie
- Date
- 24 January, 1997