Detailed Description
- See also:
- Class NURBSCurve, Class NURBSControlVertex.
- Description:
- This class is available in release 2.0 and later only.
This class defines a NURBS CV Curve. CV Curves have control
vertices. The position of the control vertices (CVs) controls the
shape of the curve. Unlike spline vertices, CVs don't necessarily
lie on the curve they define. The CVs define a control lattice
which surrounds the NURBS curve.
All methods of this class are implemented by the system.
- Data Members:
- protected:
NURBSControlVertex
*mpCVs;
Array of control vertices.
double *mpKnots;
Array of knots.
BOOL mClosed;
TRUE if the curve is closed; otherwise FALSE.
int mOrder;
The order of the curve.
int mNumKnots;
The number of knots.
int mNumCVs;
The number of control verticies.
NURBSAutoParam mAutoParam;
This data member is available in release 3.0 and later only.
Controls automatic reparameterization. See NURBSAutoParam Types.
#include <surf_api.h>
List of all
members.
Constructor & Destructor Documentation
Member Function Documentation
DllExport void Close |
( |
void |
|
) |
|
DllExport BOOL IsClosed |
( |
void |
|
) |
|
DllExport void SetOrder |
( |
int |
order |
) |
|
- Parameters:
- int order
Specifies the order of the curve.
DllExport int GetOrder |
( |
void |
|
) |
|
DllExport void SetNumKnots |
( |
int |
num |
) |
|
- Parameters:
- int num
Specifies the number of knots for the curve.
DllExport int GetNumKnots |
( |
void |
|
) |
|
DllExport void SetNumCVs |
( |
int |
num |
) |
|
- Parameters:
- int num
Specifies the number of control vertices.
DllExport void GetNumCVs |
( |
int & |
num |
) |
|
- Parameters:
- int& num
The number is stored here.
DllExport int GetNumCVs |
( |
void |
|
) |
|
DllExport double GetKnot |
( |
int |
index |
) |
|
- Parameters:
- int index
Specifies which knot value to return.
DllExport void SetKnot |
( |
int |
index, |
|
|
double |
value |
|
) |
|
|
- Parameters:
- int index
The 0 based index of the knot to set.
double value
Specifies the value to set.
- Parameters:
- int index
The 0 based index of the control vertex to return.
- Parameters:
- int index
The 0 based index of the control vertex to set.
NURBSControlVertex
&cv
The CV to set.
DllExport void SetTransformMatrix |
( |
TimeValue |
t, |
|
|
SetXFormPacket & |
xPack |
|
) |
|
|
- 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.
DllExport Matrix3 GetTransformMatrix |
( |
TimeValue |
t |
) |
|
- Parameters:
- TimeValue t
The time at which to retrieve the matrix.
- Parameters:
- TimeValue t
The time to set them.
NURBSAutoParam param
The settings to establish. See NURBSAutoParam Types.
- Parameters:
- TimeValue t
The time to reparameterize.
NURBSParamaterization param
The type of reparameterizing to perform. See NURBSMirrorAxis
Types.
DllExport void EndsOverlap |
( |
BOOL & |
overlap |
) |
|
- Parameters:
- BOOL& overlap
The result is returned here: TRUE if the ends overlap; otherwise
FALSE.
DllExport void Refine |
( |
TimeValue |
t, |
|
|
double |
u |
|
) |
|
|
- Parameters:
- TimeValue t
The time at which to refine the curve. If the curve is animated the
u parameter below is time dependent.
double u
Specifies the distance along the curve to add the CV. See the base
class method GetParameterRange()
for the valid range of values for this parameter.
DllExport void Insert |
( |
TimeValue |
t, |
|
|
double |
u |
|
) |
|
|
- Parameters:
- TimeValue t
The time at which to refine the curve. If the curve is animated the
u parameter below is time dependent.
double u
Specifies the distance along the curve to add the CV. See the base
class method GetParameterRange()
for the valid range of values for this parameter.
- Operators:
Friends And Related Function Documentation
Member Data Documentation
NURBSCVCurve NURBSCVCurve NURBSCVCurve
NURBSCVCurve NURBSCVCurve NURBSCVCurve NURBSCVCurve NURBSCVCurve
NURBSCVCurve NURBSCVCurve
NURBSCVCurve NURBSCVCurve NURBSCVCurve
NURBSCVCurve NURBSCVCurve NURBSCVCurve NURBSCVCurve NURBSCVCurve
NURBSCVCurve NURBSCVCurve