#include <surf_api.h>
Class Description
- See also:
- Class NURBSSurface.
- Description:
- This class defines a dependent U Loft surface. A U Loft surface
interpolates a surface across multiple curve sub-objects. The
curves become U-axis contours of the surface. Methods are available
to get/set the number of curves used to make the loft, append
curves to the list, get/set the parent ids, and get/set the flipped
state for each of the curves.
All methods of this class are implemented by the system.
Public Member Functions
|
DllExport |
NURBSULoftSurface (void) |
virtual
DllExport |
~NURBSULoftSurface (void) |
DllExport
NURBSULoftSurface
& |
operator= (const NURBSULoftSurface
&surf) |
DllExport
void |
SetNumCurves (int num) |
DllExport
int |
GetNumCurves (void) |
DllExport
int |
AppendCurve (int index, BOOL flip, double startpoint=0.0,
double tension=0.0, BOOL useTangent=FALSE, BOOL
flipTangent=FALSE) |
DllExport
int |
AppendCurve (NURBSId
id, BOOL flip, double startpoint=0.0, double tension=0.0, BOOL
useTangent=FALSE, BOOL flipTangent=FALSE) |
DllExport
void |
SetParent (int pnum, int index) |
DllExport
void |
SetParentId (int pnum, NURBSId
id) |
DllExport
int |
GetParent (int pnum) |
DllExport
NURBSId |
GetParentId (int pnum) |
DllExport
void |
SetFlip (int pnum, BOOL flip) |
DllExport
BOOL |
GetFlip (int pnum) |
DllExport
void |
SetCurveStartPoint (TimeValue
t, int pnum, double startpoint) |
DllExport
double |
GetCurveStartPoint (TimeValue
t, int pnum) |
DllExport
void |
SetCurveTension (TimeValue
t, int pnum, double tension) |
DllExport
double |
GetCurveTension (TimeValue
t, int pnum) |
DllExport
void |
SetCurveUseSurfaceTangent (int pnum, BOOL useTangent) |
DllExport
BOOL |
GetCurveUseSurfaceTangent (int pnum) |
DllExport
void |
SetFlipTangent (int pnum, BOOL flipTangent) |
DllExport
BOOL |
GetFlipTangent (int pnum) |
DllExport
void |
SetAutoAlign (BOOL autoalign) |
DllExport
BOOL |
GetAutoAlign () |
DllExport
void |
SetCloseLoft (BOOL closeLoft) |
DllExport
BOOL |
GetCloseLoft () |
Friends
|
class |
NURBSSet |
Constructor & Destructor Documentation
Member Function Documentation
DllExport void SetNumCurves |
( |
int |
num |
) |
|
- Parameters:
- int num
The number of curves to set.
DllExport int GetNumCurves |
( |
void |
|
) |
|
DllExport int AppendCurve |
( |
int |
index, |
|
|
BOOL |
flip, |
|
|
double |
startpoint = 0.0 , |
|
|
double |
tension = 0.0 , |
|
|
BOOL |
useTangent =
FALSE , |
|
|
BOOL |
flipTangent =
FALSE |
|
) |
|
|
- Parameters:
- int index
The index of the curve to add in the NURBSSet.
BOOL flip
TRUE to flip the orientation of this curve's normal used to build
the loft; otherwise FALSE.
- Returns:
- The number of curves in the list prior to this one being
added.
DllExport int AppendCurve |
( |
NURBSId |
id, |
|
|
BOOL |
flip, |
|
|
double |
startpoint = 0.0 , |
|
|
double |
tension = 0.0 , |
|
|
BOOL |
useTangent =
FALSE , |
|
|
BOOL |
flipTangent =
FALSE |
|
) |
|
|
- Parameters:
- NURBSId id
The NURBS id of the curve to add.
BOOL flip
TRUE to flip the orientation of this curve's normal used to build
the loft; otherwise FALSE.
DllExport void SetParent |
( |
int |
pnum, |
|
|
int |
index |
|
) |
|
|
- Parameters:
- int pnum
The parent number, 0, 1, 2, etc.
int index
The index into the NURBSSet of the parent
surface.
DllExport void SetParentId |
( |
int |
pnum, |
|
|
NURBSId |
id |
|
) |
|
|
- Parameters:
- int pnum
The parent number, 0, 1, 2, etc.
NURBSId id
The id to set.
DllExport int GetParent |
( |
int |
pnum |
) |
|
- Parameters:
- int pnum
The parent number, 0, 1, 2, etc.
DllExport NURBSId
GetParentId |
( |
int |
pnum |
) |
|
- Parameters:
- int pnum
The parent number, 0, 1, 2, etc.
DllExport void SetFlip |
( |
int |
pnum, |
|
|
BOOL |
flip |
|
) |
|
|
- Parameters:
- int pnum
The parent number, 0, 1, 2, etc.
BOOL flip
TRUE to flip the orientation of the normal when building the
surface at this curve; otherwise FALSE.
DllExport BOOL GetFlip |
( |
int |
pnum |
) |
|
- Parameters:
- int pnum
The parent number, 0, 1, 2, etc.
DllExport void SetCurveStartPoint |
( |
TimeValue |
t, |
|
|
int |
pnum, |
|
|
double |
startpoint |
|
) |
|
|
- Parameters:
- TimeValue t
The time at which to set the start point.
int pnum
The parent number, 0, 1, 2, etc.
double startpoint
The start point in the range 0.0 to 1.0.
DllExport double GetCurveStartPoint |
( |
TimeValue |
t, |
|
|
int |
pnum |
|
) |
|
|
- Parameters:
- TimeValue t
The time at which to get the start point.
int pnum
The parent number, 0, 1, 2, etc.
DllExport void SetCurveTension |
( |
TimeValue |
t, |
|
|
int |
pnum, |
|
|
double |
tension |
|
) |
|
|
- Parameters:
- TimeValue t
The time at which to set the tension.
int pnum
The parent number, 0, 1, 2, etc.
double tension
The tension value to set.
DllExport double GetCurveTension |
( |
TimeValue |
t, |
|
|
int |
pnum |
|
) |
|
|
- Parameters:
- TimeValue t
The time at which to get the tension.
int pnum
The parent number, 0, 1, 2, etc.
DllExport void SetCurveUseSurfaceTangent |
( |
int |
pnum, |
|
|
BOOL |
useTangent |
|
) |
|
|
- Parameters:
- int pnum
The parent number, 0, 1, 2, etc.
BOOL useTangent
TRUE to use the tangent; otherwise FALSE.
DllExport BOOL GetCurveUseSurfaceTangent |
( |
int |
pnum |
) |
|
- Parameters:
- int pnum
The parent number, 0, 1, 2, etc.
DllExport void SetFlipTangent |
( |
int |
pnum, |
|
|
BOOL |
flipTangent |
|
) |
|
|
- Parameters:
- int pnum
The parent number, 0, 1, 2, etc.
BOOL flipTangent
TRUE to flip the tangent; otherwise FALSE.
DllExport BOOL GetFlipTangent |
( |
int |
pnum |
) |
|
- Parameters:
- int pnum
The parent number, 0, 1, 2, etc.
DllExport void SetAutoAlign |
( |
BOOL |
autoalign |
) |
|
- Parameters:
- BOOL autoalign
TRUE for on; FALSE for off.
DllExport BOOL GetAutoAlign |
( |
|
) |
|
DllExport void SetCloseLoft |
( |
BOOL |
closeLoft |
) |
|
- Parameters:
- BOOL closeLoft
TRUE for closed; FALSE for open.
DllExport BOOL GetCloseLoft |
( |
|
) |
|
Friends And Related Function Documentation