Detailed Description
- See also:
- Class NURBSObject, Class NURBSTrimPoint.
- Description:
- This class is available in release 2.0 and later only.
This class describes the properties of a NURBS curve. This includes
its number of trim points and its open/closed state. The
Evaluate()
method is used to compute points on the curve.
All methods of this class are implemented by the system.
- Data Members:
- protected:
int mMatID;
This data member is available in release 3.0 and later only.
The material ID for the curve.
#include <surf_api.h>
List of all
members.
Public Member Functions
|
DllExport |
NURBSCurve
(void) |
virtual
DllExport |
~NURBSCurve
(void) |
DllExport
NURBSCurve
& |
operator=
(const NURBSCurve &curve) |
DllExport
BOOL |
IsClosed
(void) |
DllExport
int |
NumTrimPoints
() |
DllExport
NURBSTrimPoint |
GetTrimPoint
(TimeValue t, int i) |
DllExport
BOOL |
Evaluate
(TimeValue t, double u, Point3 &pt, Point3 &tangent) |
DllExport
void |
GetParameterRange
(TimeValue t, double &uMin, double &uMax) |
DllExport
BOOL |
GetNURBSData
(TimeValue t, int °ree, int &numCVs, NURBSCVTab &cvs, int &numKnots,
NURBSKnotTab
&knots) |
DllExport
int |
MatID
() |
DllExport
void |
MatID
(int id) |
Protected Attributes
|
int |
mMatID |
Friends
|
class |
NURBSCVCurve |
class |
NURBSPointCurve |
class |
NURBSBlendCurve |
class |
NURBSOffsetCurve |
class |
NURBSXFormCurve |
class |
NURBSMirrorCurve |
class |
NURBSFilletCurve |
class |
NURBSChamferCurve |
class |
NURBSIsoCurve |
class |
NURBSSurfaceEdgeCurve |
class |
NURBSProjectVectorCurve |
class |
NURBSProjectNormalCurve |
class |
NURBSSurfaceNormalCurve |
class |
NURBSNBlendSurface |
class |
NURBSRuledSurface |
class |
NURBSULoftSurface |
class |
NURBSUVLoftSurface |
class |
NURBSExtrudeSurface |
class |
NURBSLatheSurface |
class |
NURBSCapSurface |
class |
NURBS1RailSweepSurface |
class |
NURBS2RailSweepSurface |
class |
NURBSMultiCurveTrimSurface |
Constructor & Destructor Documentation
Member Function Documentation
- Parameters:
- const NURBSCurve& curve
The curve to assign.
DllExport BOOL IsClosed |
( |
void |
|
) |
|
DllExport int NumTrimPoints |
( |
|
) |
|
- Parameters:
- TimeValue t
The time to retrieve the trim point.
int i
The zero based index of the trim point to return.
DllExport BOOL Evaluate |
( |
TimeValue |
t, |
|
|
double |
u, |
|
|
Point3 & |
pt, |
|
|
Point3 & |
tangent |
|
) |
|
|
- Parameters:
- TimeValue t
The time to evaluate the curve.
double u
Specifies the point along the curve to evaluate. This value must be
between the uMin and uMax as returned from
GetParameterRange().
Point3&
pt
The point along the curve is returned here.
Point3&
tangent
The tangent at the specified point is returned here.
- Returns:
- TRUE if the method was able to evaluate the curve; otherwise
FALSE.
DllExport void GetParameterRange |
( |
TimeValue |
t, |
|
|
double & |
uMin, |
|
|
double & |
uMax |
|
) |
|
|
- Parameters:
- TimeValue t
The time to get the parameter range of the curve.
double& uMin
The minimum value is returned here.
double& uMax
The maximum value is returned here.
DllExport BOOL GetNURBSData |
( |
TimeValue |
t, |
|
|
int & |
degree, |
|
|
int & |
numCVs, |
|
|
NURBSCVTab & |
cvs, |
|
|
int & |
numKnots, |
|
|
NURBSKnotTab & |
knots |
|
) |
|
|
- Parameters:
- TimeValue t
The time at which to get the NURBS information.
int& degree
The degree of the curve.
int& numCVs
The number of CVs.
NURBSCVTab& cvs
The table of CVs. Note: typedef Tab<NURBSControlVertex>
NURBSCVTab;
int& numKnots
The number of knots.
NURBSKnotTab knots
A table of knots in U. Note: typedef Tab<double>
NURBSKnotTab;
- Returns:
- TRUE if the data was retrieved; otherwise FALSE.
DllExport void MatID |
( |
int |
id |
) |
|
- Parameters:
- int id
The ID to set.
- Operators:
Friends And Related Function Documentation
Member Data Documentation
NURBSCurve NURBSCurve NURBSCurve
NURBSCurve NURBSCurve NURBSCurve NURBSCurve NURBSCurve NURBSCurve
NURBSCurve
NURBSCurve NURBSCurve NURBSCurve
NURBSCurve NURBSCurve NURBSCurve NURBSCurve NURBSCurve NURBSCurve
NURBSCurve