#include <surf_api.h>
Class Description
- See also:
- Class NURBSSurface.
- Description:
- This class provides access to the 2-Rail Sweep Surface. A
2-Rail Sweep surface uses at least three curves. Two curves, the
"rails," define the two edges of the surface. The other curves
define the surface's cross sections. A 2-Rail Sweep surface is
similar to a 1-Rail sweep. The additional rail gives you more
control over the shape of the surface.
Public Member Functions
|
DllExport |
NURBS2RailSweepSurface (void) |
virtual
DllExport |
~NURBS2RailSweepSurface (void) |
DllExport
NURBS2RailSweepSurface
& |
operator= (const NURBS2RailSweepSurface
&surf) |
DllExport
void |
SetNumCurves (int num) |
DllExport
int |
GetNumCurves (void) |
DllExport
int |
AppendCurve (int index, BOOL flip, double startpoint=0.0) |
DllExport
int |
AppendCurve (NURBSId
id, BOOL flip, double startpoint=0.0) |
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 |
SetParallel (BOOL para) |
DllExport
BOOL |
GetParallel () |
DllExport
void |
SetScale (BOOL scale) |
DllExport
BOOL |
GetScale () |
DllExport
void |
SetSnapCS (BOOL snapCS) |
DllExport
BOOL |
GetSnapCS () |
DllExport
void |
SetRailParent (int pnum, int index) |
DllExport
void |
SetRailParentId (int pnum, NURBSId
id) |
DllExport
int |
GetRailParent (int pnum) |
DllExport
NURBSId |
GetRailParentId (int pnum) |
DllExport
void |
SetCurveStartPoint (TimeValue
t, int pnum, double startpoint) |
DllExport
double |
GetCurveStartPoint (TimeValue
t, int pnum) |
Friends
|
class |
NURBSSet |
Constructor & Destructor Documentation
Member Function Documentation
DllExport void SetNumCurves |
( |
int |
num |
) |
|
- Parameters:
- int num
The number of cross-section curves to use.
DllExport int GetNumCurves |
( |
void |
|
) |
|
DllExport int AppendCurve |
( |
int |
index, |
|
|
BOOL |
flip, |
|
|
double |
startpoint =
0.0 |
|
) |
|
|
- Parameters:
- int index
The index in the NURBSSet of the cross-section
curve to append.
BOOL flip
TRUE to reverse (or flip) the direction of the curve; FALSE to use
the non-reversed orientation.
- Returns:
- The number of cross-section curves prior to appending.
DllExport int AppendCurve |
( |
NURBSId |
id, |
|
|
BOOL |
flip, |
|
|
double |
startpoint =
0.0 |
|
) |
|
|
- Parameters:
- NURBSId id
Specifies the cross-section curve to append.
BOOL flip
TRUE to reverse (or flip) the direction of the curve; FALSE to use
the non-reversed orientation.
- Returns:
- The number of cross-section curves prior to appending.
DllExport void SetParent |
( |
int |
pnum, |
|
|
int |
index |
|
) |
|
|
- Parameters:
- int pnum
The zero based index of the curve to set.
int index
The index in the NURBSSet of the curve.
DllExport void SetParentId |
( |
int |
pnum, |
|
|
NURBSId |
id |
|
) |
|
|
- Parameters:
- int pnum
The zero based index of the curve to set.
NURBSId id
The id of the curve.
DllExport int GetParent |
( |
int |
pnum |
) |
|
- Parameters:
- int pnum
The zero based index of the curve to get.
DllExport NURBSId
GetParentId |
( |
int |
pnum |
) |
|
- Parameters:
- int pnum
The zero based index of the curve to get.
DllExport void SetFlip |
( |
int |
pnum, |
|
|
BOOL |
flip |
|
) |
|
|
- Parameters:
- int pnum
The zero based index of the curve.
BOOL flip
TRUE to reverse the direction; FALSE for the normal direction.
DllExport BOOL GetFlip |
( |
int |
pnum |
) |
|
- Parameters:
- int pnum
The zero based index of the curve.
DllExport void SetParallel |
( |
BOOL |
para |
) |
|
- Parameters:
- BOOL para
TRUE for on; FALSE for off.
DllExport BOOL GetParallel |
( |
|
) |
|
DllExport void SetScale |
( |
BOOL |
scale |
) |
|
- Parameters:
- BOOL scale
TRUE to scale uniformly; FALSE to scale non-uniformly.
DllExport BOOL GetScale |
( |
|
) |
|
DllExport void SetSnapCS |
( |
BOOL |
snapCS |
) |
|
- Parameters:
- BOOL snapCS
TRUE for on; FALSE for off.
DllExport BOOL GetSnapCS |
( |
|
) |
|
DllExport void SetRailParent |
( |
int |
pnum, |
|
|
int |
index |
|
) |
|
|
- Parameters:
- int pnum
Pass 0 for the first rail curve; 1 for the second rail curve.
int index
The index in the NURBSSet of the curve to use as
a rail.
DllExport void SetRailParentId |
( |
int |
pnum, |
|
|
NURBSId |
id |
|
) |
|
|
- Parameters:
- int pnum
Pass 0 for the first rail curve; 1 for the second rail curve.
NURBSId id
The id of the curve to use as a rail.
DllExport int GetRailParent |
( |
int |
pnum |
) |
|
- Parameters:
- int pnum
Pass 0 for the first rail curve; 1 for the second rail curve.
DllExport NURBSId
GetRailParentId |
( |
int |
pnum |
) |
|
- Parameters:
- int pnum
Pass 0 for the first rail curve; 1 for the second rail curve.
DllExport void SetCurveStartPoint |
( |
TimeValue |
t, |
|
|
int |
pnum, |
|
|
double |
startpoint |
|
) |
|
|
- Parameters:
- TimeValue t
The time at which to set the start point.
int pnum
Pass 0 for the first rail curve; 1 for the second rail curve.
double startpoint
The start point in the range of 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
Pass 0 for the first rail curve; 1 for the second rail curve.
- Operators:
Friends And Related Function Documentation