Class MNFaceElement

3DS Max Plug-In SDK

Class MNFaceElement

See Also: Class MNTempData, Class MNMesh

class MNFaceElement

Description:

This class is available in release 4.0 and later only.

This class is used to assist in the process of sorting MNMesh faces into separate elements.

For convenient caching, it is recommended that you use this class through the MNTempData class.

Data Members:

public:

Tab<int> elem;

The list indicating which element each face is in. The size is the number of faces in the associated MNMesh.

int count;

The total number of elements in the associated MNMesh.

Methods:

public:

Prototype:

MNFaceElement (MNMesh &mesh);

Remarks:

Constructor.

This method will create an element list based on the specified MNMesh.

Parameters:

MNMesh &mesh

A reference to the MNMesh for which to create the element list.

Prototype:

int operator[](int i);

Remarks:

Index operator for accessing elements.

Default Implementation:

{ return elem[i]; }