MNFaceElement Class Reference
 
 
 
MNFaceElement Class Reference

#include <mnmesh.h>

Inheritance diagram for MNFaceElement:
MaxHeapOperators

Class Description

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:
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.

Public Member Functions

DllExport  MNFaceElement (MNMesh &mesh)
  Create an element list based on the specified MNMesh.
int  operator[] (int i)
  Index operator for accessing elements.

Public Attributes

Tab< int >  elem
int  count

Constructor & Destructor Documentation

DllExport MNFaceElement ( MNMesh mesh )

Create an element list based on the specified MNMesh.

Parameters:
MNMesh &mesh

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

Member Function Documentation

int operator[] ( int  i ) [inline]

Index operator for accessing elements.

{return elem[i];}

Member Data Documentation