FaceRemap Class Reference
 
 
 
FaceRemap Class Reference

#include <meshdelta.h>

Inheritance diagram for FaceRemap:
MaxHeapOperators

Class Description

This class represents the notion of a mesh edit Face Remap, which changes one or more of the verticies a face uses.

It can also alter the visibiliy of the face's edge, its hidden state and its material ID.

See also:
Class Mesh, Class Face, Class Point3.

Public Member Functions

  FaceRemap ()
DllExport  FaceRemap (DWORD faceIndex, DWORD flag, DWORD *vertexIndexArray)
DllExport void  Apply (Face &ff)
DllExport void  Apply (TVFace &tf)
DllExport void  Apply (FaceRemap &fr)
Face  operator* (Face &ff)
TVFace  operator* (TVFace &ff)

Public Attributes

DWORD  f
  Face being remapped. This is a zero based index into the Mesh's faces array.
DWORD  flags
  Specifies which verticies to remap.
DWORD  v [3]
  Array of vertex indicies.

Constructor & Destructor Documentation

FaceRemap ( ) [inline]
Remarks:
Constructor. The flags and f are set to 0.
{ f=flags=0; }
DllExport FaceRemap ( DWORD  faceIndex,
DWORD  flag,
DWORD *  vertexIndexArray 
)
Remarks:
Constructor.
Parameters:
faceIndex - The face to remap.
flag - The flags to set.
vertexIndexArray - The array of vertex indicies.

Member Function Documentation

DllExport void Apply ( Face ff )
Remarks:
Applies the vertex remapping to the given face based on the flags of this FaceRemap object.
Parameters:
Face &ff The face whose vertices are remapped.
DllExport void Apply ( TVFace tf )
Remarks:
Applies the vertex remapping to the given map face based on the flags of this FaceRemap object.
Parameters:
TVFace &tf The texture face whose tVerts are remapped by the verts of this FaceRemap object. The v data member used contains indices into the mesh object's tVerts array.
DllExport void Apply ( FaceRemap fr )
Remarks:
Assigns the flags and verts of this FaceRemap object to the FaceRemap passed.
Parameters:
FaceRemap &fr The FaceRemap whose flags and verts are assigned.
Face operator* ( Face ff ) [inline]
Remarks:
Returns a new Face with the FaceRemap applied.
{ Face nf=ff; Apply(nf); return nf; }
TVFace operator* ( TVFace ff ) [inline]
Remarks:
Returns a new TVFace with the FaceRemap applied.
{ TVFace nf=ff; Apply(nf); return nf; }

Member Data Documentation

DWORD f

Face being remapped. This is a zero based index into the Mesh's faces array.

DWORD flags

Specifies which verticies to remap.

One or more of the following values: FR_V0 - Remap the 0th vertex. FR_V1 - Remap the 1st vertex. FR_V2 - Remap the 2nd vertex. FR_ALL - Remap all the vertices.

DWORD v[3]

Array of vertex indicies.

These indicate which vertex is used by each specified corner of the face being remapped.