Class NURBSPointCurveOnSurface

3DS Max Plug-In SDK

Class NURBSPointCurveOnSurface

See Also: Class NURBSPointCurve.

class NURBSPointCurveOnSurface : public NURBSPointCurve

Description:

This class is available in release 2.5 and later only.

This class provides access to the point curve on surface parameters. These curves can be used for trimming the surface they lie on.

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:

NURBSPointCurveOnSurface(void);

Remarks:

Constructor. The data members are initialized as follows:

 mType = kNPointCurveOnSurface;

 mpObject = NULL;

 mpNSet = NULL;

 mParentId = 0;

 mParentIndex = -1;

 mTrim = FALSE;

 mFlipTrim = FALSE;

Prototype:

virtual ~NURBSPointCurveOnSurface(void);

Remarks:

Destructor.

Prototype:

void SetParent(int index);

Remarks:

Sets the index in the NURBSSet of the parent surface.

Parameters:

int index

The index in the NURBSSet of the parent surface.

Prototype:

void SetParentId(NURBSId id);

Remarks:

Sets the NURBSId of the parent.

Parameters:

NURBSId id

The id to set.

Prototype:

int GetParent();

Remarks:

Returns the index in the NURBSSet of the parent surface.

Prototype:

NURBSId GetParentId();

Remarks:

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

Prototype:

BOOL GetTrim();

Remarks:

Returns the state of the trim toggle.

Prototype:

BOOL GetFlipTrim();

Remarks:

Returns the state of the trim flip toggle.

Prototype:

void SetFlipTrim(BOOL flip);

Remarks:

Sets the state of the trim flip toggle. This controls which portion of the parent surface is trimmed.

Parameters:

BOOL flip

TRUE for flipped; FALSE for not.

Prototype:

NURBSPointCurveOnSurface & operator=(const NURBSPointCurveOnSurface& curve);

Remarks:

Assignment operator.

Parameters:

const NURBSPointCurveOnSurface& curve

The curve to assign.