Public Member Functions | Public Attributes

FaceRemap Class Reference

Search for all occurrences

Detailed Description

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

Description:
This class is available in release 3.0 and later only.

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

#include <meshdelta.h>

Inheritance diagram for FaceRemap:
Inheritance graph
[legend]

List of all members.

Public Member Functions

  FaceRemap ()
DllExport  FaceRemap (DWORD ff, DWORD fl, DWORD *vv)
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
DWORD  flags
DWORD  v [3]

Constructor & Destructor Documentation

FaceRemap ( ) [inline]
Remarks:
Constructor. The flags and f are set to 0.
{ f=flags=0; }
DllExport FaceRemap ( DWORD  ff,
DWORD  fl,
DWORD *  vv 
)
Remarks:
Constructor.
Parameters:
DWORD ff

The face to remap.

DWORD fl

The flags to set.

DWORD *vv

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
DWORD flags
DWORD v[3]

FaceRemap FaceRemap FaceRemap FaceRemap FaceRemap FaceRemap FaceRemap FaceRemap FaceRemap FaceRemap
FaceRemap FaceRemap FaceRemap FaceRemap FaceRemap FaceRemap FaceRemap FaceRemap FaceRemap FaceRemap