Class NURBSUVLoftSurface

3DS Max Plug-In SDK

Class NURBSUVLoftSurface

See Also: Class NURBSSurface.

class NURBSUVLoftSurface : public NURBSSurface

Description:

This class is available in release 2.5 and later only.

This class provides access to the UV Loft Surface. This surface is similar to the U Loft surface, but has a set of curves in the V dimension as well as the U dimension.

Friend Classes:

friend class NURBSSet

Methods:

protected:

Prototype:

void Clean(NURBSIdTab ids);

Remarks:

This method is available in release 3.0 and later only.

This methods breaks the relation between this NURBSObject and a NURBSSet.

Parameters:

NURBSIdTab ids

A table with the IDs of each object in the NURBSSet.

public:

Prototype:

NURBSUVLoftSurface(void);

Remarks:

Constructor. The data members are initialized as follows:

 mType = kNUVLoftSurface;

 mpObject = NULL;

 mpNSet = NULL;

 mUParentId.SetCount(0);

 mUParentIndex.SetCount(0);

 mVParentId.SetCount(0);

 mVParentIndex.SetCount(0);

Prototype:

virtual ~NURBSUVLoftSurface(void);

Remarks:

Destructor.

Prototype:

void SetNumUCurves(int num);

Remarks:

Sets the number of curves in the U dimension.

Parameters:

int num

The number of curves to use in the U dimension.

Prototype:

int GetNumUCurves(void);

Remarks:

Returns the number of curves in the U dimension.

Prototype:

int AppendUCurve(int index);

Remarks:

Appends the specified curve (by NURBSSet index) to the list of U curves.

Parameters:

int index

The index in the NURBSSet of the curve to use.

Prototype:

int AppendUCurve(NURBSId id);

Remarks:

Appends the specified curve (by NURBSId) to the list of U curves.

Parameters:

NURBSId id

The NURBSId of the curve to use.

Return Value:

Returns the number of curves in the set prior to appending.

Prototype:

void SetUParent(int pnum, int index);

Remarks:

Sets the specified parent curve (by NURBSSet index) as the speciifed curve in the surface.

Parameters:

int pnum

The index into the list of U curves of the parent curve to set.

int index

The index into the NURBSSet of the parent curve to set.

Prototype:

void SetUParentId(int pnum, NURBSId id);

Remarks:

Sets the specified parent curve (by NURBSId) as the speciifed curve in the surface.

Parameters:

int pnum

The index into the list of U curves of the parent curve to set.

NURBSId id

The NURBSId of the parent curve to set.

Prototype:

int GetUParent(int pnum);

Remarks:

Returns the index into the NURBSSet of the specified parent curve.

Parameters:

int pnum

The zero based index of the parent curve.

Prototype:

NURBSId GetUParentId(int pnum);

Remarks:

Returns the NURBSId of the specified parent curve. Note that a NURBSId won't be valid until the surface has been instantiated in the scene.

Parameters:

int pnum

The zero based index of the parent curve.

Prototype:

void SetNumVCurves(int num);

Remarks:

Sets the number of curves in the V dimension.

Parameters:

int num

The number of curves to use in the V dimension.

Prototype:

int GetNumVCurves(void);

Remarks:

Returns the number of curves in the V dimension.

Prototype:

int AppendVCurve(int index);

Remarks:

Appends the specified curve (by NURBSSet index) to the list of V curves.

Parameters:

int index

The index in the NURBSSet of the curve to use.

Return Value:

Returns the number of curves in the set prior to appending.

Prototype:

int AppendVCurve(NURBSId id);

Remarks:

Appends the specified curve (by NURBSId) to the list of U curves.

Parameters:

NURBSId id

The NURBSId of the curve to use.

Return Value:

Returns the number of curves in the set prior to appending.

Prototype:

void SetVParent(int pnum, int index);

Remarks:

Sets the specified parent curve (by NURBSSet index) as the speciifed curve in the surface.

Parameters:

int pnum

The index into the list of V curves of the parent curve to set.

int index

The index into the NURBSSet of the parent curve to set.

Prototype:

void SetVParentId(int pnum, NURBSId id);

Remarks:

Sets the specified parent curve (by NURBSId) as the speciifed curve in the surface.

Parameters:

int pnum

The index into the list of V curves of the parent curve to set.

NURBSId id

The NURBSId of the parent curve to set.

Prototype:

int GetVParent(int pnum);

Remarks:

Returns the index into the NURBSSet of the specified parent curve.

Parameters:

int pnum

The zero based index of the parent curve.

Prototype:

NURBSId GetVParentId(int pnum);

Remarks:

Returns the NURBSId of the specified parent curve. Note that a NURBSId won't be valid until the surface has been instantiated in the scene.

Parameters:

int pnum

The zero based index of the parent curve.

Prototype:

NURBSUVLoftSurface & operator=(const NURBSUVLoftSurface& surf);

Remarks:

Assignment operator.

Parameters:

const NURBSUVLoftSurface& surf

The surface to assign.