Class NURBSSurfaceEdgeCurve

3DS Max Plug-In SDK

Class NURBSSurfaceEdgeCurve

See Also: Class NURBSCurve.

class NURBSSurfaceEdgeCurve : public NURBSCurve

Description:

This class is available in release 3.0 and later only.

This class defines a dependent edge curve. There are methods available to get/set the parent surface index and id, and get/set the parameter which determines the location on the surface the curve matches.

All methods of this class are implemented by the system.

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:

NURBSSurfaceEdgeCurve();

Remarks:

Constructr. The data members are initialized as follows:

 mType = kNSurfaceEdgeCurve;

 mpObject = NULL;

 mpNSet = NULL;

 mParentId = 0;

 mParentIndex = -1;

 mSeed = Point2(0.0, 0.0);

Prototype:

virtual ~NURBSSurfaceEdgeCurve();

Remarks:

Destructor.

Prototype:

void SetParent(int index);

Remarks:

Sets the NURBSId of the specified parent.

Parameters:

int index

The index into the NURBSSet of the parent surface.

Prototype:

void SetParentId(NURBSId id);

Remarks:

Sets the NURBSId of the specified parent.

Parameters:

NURBSId id

The id to set.

Prototype:

int GetParent();

Remarks:

Returns the index in the NURBSSet of the parent object.

Prototype:

NURBSId GetParentId();

Remarks:

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

Prototype:

Point2 GetSeed();

Remarks:

Returns the UV location of the seed value on the curve.

Prototype:

void SetSeed(Point2& seed);

Remarks:

Sets the UV location of the seed value on the curve.

Parameters:

Point2& seed

The seed value to set.

Operators:

Prototype:

NURBSSurfaceEdgeCurve &operator=(const NURBSSurfaceEdgeCurve& curve);

Remarks:

Assignment operator.

Parameters:

const NURBSSurfaceEdgeCurve& curve

The curve to assign from.