Class NURBSNBlendSurface

3DS Max Plug-In SDK

Class NURBSNBlendSurface

See Also: Class NURBSSurface.

class NURBSNBlendSurface : public NURBSSurface

Description:

This class is available in release 2.5 and later only.

This class provides access to the Multisided Blend surface. A Multisided Blend surface is a surface that "fills in" the edges defined by three or four other curve or surfaces. Unliked a regular, two-sided Blend surface, the curves or surfaces edges must form a closed loop¾that is, they must completely surround the opening the Multisided Blend will cover.

Note: For the blend to work, the curves that define the blend must form a loop (that is, sequence head to tail, and the ends must match).

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:

NURBSNBlendSurface(void);

Remarks:

Constructor. The data members are initialized as follows:

 mType = kNNBlendSurface;

 mpObject = NULL;

 mpNSet = NULL;

 for (int i = 0; i < 4; i++) {

  mParentId[i] = 0;

  mParentIndex[i] = -1;

  mParentEdge[i] = 0;

 }

Prototype:

virtual ~NURBSNBlendSurface(void);

Remarks:

Destructor.

Prototype:

void SetParent(int pnum, int index);

Remarks:

Sets the specified parent curve or surface (by NURBSSet index) as the speciifed edge for the surface.

Parameters:

int pnum

The index of the parent curve or surface to set.

int index

The index in the NURBSSet of the curve or surface.

Prototype:

void SetParentId(int pnum, NURBSId id);

Remarks:

Sets the specified parent curve or surface (by NURBSId) as the speciifed edge for the surface.

Parameters:

int pnum

The index of the parent curve or surface to set.

NURBSId id

The id of the curve or surface to set.

Prototype:

int GetParent(int pnum);

Remarks:

Returns the index in the NURBSSet of the specified curve or surface.

Parameters:

int pnum

The index of the parent curve or surface to get.

Prototype:

NURBSId GetParentId(int pnum);

Remarks:

Returns the NURBSId of the specified curve or surface.

Parameters:

int pnum

The index of the parent curve or surface to get.

Prototype:

void SetEdge(int pnum, int edge);

Remarks:

If using a surface for the blend surface edge, this method indicates which edge on the surface to use.

Parameters:

int pnum

The index of the parent surface.

int edge

The edge to use for the blend. One of the following values:

0: The low U edge.

1: The high U edge.

2: The low V edge.

3: The high V edge.

Prototype:

int GetEdge(int pnum);

Remarks:

Returns the edge used by the specified surface to create the blend.

Parameters:

int pnum

The index of the parent surface.

Return Value:

The edge used for the blend. One of the following values:

0: The low U edge.

1: The high U edge.

2: The low V edge.

3: The high V edge.

Prototype:

NURBSNBlendSurface & operator=(const NURBSNBlendSurface& surf);

Remarks:

Assignment operator.

Parameters:

const NURBSNBlendSurface& surf

The surface to assign.