#include <surf_api.h>
Class Description
- See also:
- Class NURBSCurve, Class NURBSIndependentPoint.
- Description:
- This class defines a curve that uses points to describe its
shape. All the points lie on the curve itself. There are methods to
get/set the number of points in the curve, get/set the points
themselves, refine the curve (add points without changing its
shape), and to get/set the transformation matrix used by the curve.
This matrix is used to set the postion of the curve in the
NURBSSet.
All methods of this class are implemented by the system.
- Data Members:
- protected:
NURBSIndependentPoint
*mpPts;
Array of independent points.
BOOL mClosed;
TRUE if the curve is closed; otherwise FALSE.
int mNumPts;
The number of independent points.
Constructor & Destructor Documentation
Member Function Documentation
DllExport void Close |
( |
void |
|
) |
|
DllExport BOOL IsClosed |
( |
void |
|
) |
|
DllExport void SetNumPts |
( |
int |
num |
) |
|
- Parameters:
- int num
The number of points in the curve.
DllExport int GetNumPts |
( |
void |
|
) |
|
DllExport void GetNumPts |
( |
int & |
num |
) |
|
- Parameters:
- int &num
The result is stored here.
- Parameters:
- int index
The zero based index of the point to get.
- Parameters:
- int index
The zero based index of the point to set.
NURBSIndependentPoint
&pt
The point to set.
- Parameters:
- TimeValue t
The time at which to set the matrix.
SetXFormPacket&
xPack
An instance of the XFormPacket class that describes the
properties of the transformation. See Class SetXFormPacket.
- Parameters:
- TimeValue t
The time at which to return the matrix.
DllExport void Refine |
( |
TimeValue |
t, |
|
|
double |
u |
|
) |
|
|
- Parameters:
- TimeValue t
The time at which to refine the curve. The curve may be animated,
and thus the underlying parameter space may be changing. So when
the u value is specified it must relate to the curve at a
specific time.
double u
The point at which to refine the curve. Developers should use the
method NURBSCurve::GetParameterRange()
to get the valid range of values that may be passed here.
- Operators:
Friends And Related Function Documentation
Member Data Documentation