Class FaceRemap
See Also: Class Mesh, Class Face, Class Point3.
class FaceRemap
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:
public:
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.
Methods:
public:
Prototype:
FaceRemap();
Remarks:
Constructor. The flags and f are set to 0.
Prototype:
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.
Prototype:
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.
Prototype:
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.
Prototype:
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.
Prototype:
Face operator*(Face &ff);
Remarks:
Returns a new Face with the FaceRemap applied.
Prototype:
TVFace operator*(TVFace & ff);
Remarks:
Returns a new TVFace with the FaceRemap applied.