#include <meshdelta.h>
Represents some kind of change to a mesh map.
This "delta" can include changes in map vertices and/or faces. It is always a subordinate part of a MeshDelta. Most of the time, the programmer does not need to worry about this class directly, but can let the parent MeshDelta do most of the work.
Public Member Functions |
|
MapDelta () | |
DllExport void | ClearAllOps () |
DllExport int | NumVSet (DWORD inVNum) |
DllExport void | SetInVNum (DWORD n) |
DllExport void | SetInFNum (DWORD n) |
DWORD | outVNum () |
DWORD | outVNum (DWORD inVNum) |
bool | IsCreate (DWORD i) |
DllExport DWORD | SetID (DWORD i) |
DllExport DWORD | VCreate (UVVert *v, int num=1) |
DllExport void | FCreate (TVFace *f, int num=1) |
DllExport void | FCreateDefault (int num=1) |
DllExport void | FCreateQuad (DWORD *t) |
DllExport void | FClone (TVFace &tf, DWORD remapFlags=0, DWORD *v=NULL) |
DllExport void | FRemap (DWORD f, DWORD flags, DWORD *v) |
void | FRemap (FaceRemap &fr) |
DllExport DWORD | RemapID (DWORD ff) |
DllExport DWORD | IsRemapped (DWORD ff, DWORD vid) |
DllExport TVFace | OutFace (TVFace *mf, DWORD ff) |
DllExport void | FDelete (int offset, BitArray &fdel) |
DllExport void | Set (DWORD i, const UVVert &p) |
DllExport void | Set (BitArray &sel, const UVVert &p) |
MapDelta & | operator= (MapDelta &from) |
DllExport MapDelta & | operator*= (MapDelta &from) |
DllExport void | Apply (UVVert *tv, TVFace *tf, DWORD inVNum, DWORD inFNum) |
DllExport void | MyDebugPrint () |
DllExport DWORD | ChangeFlags () |
DllExport void | CopyMDChannels (MapDelta &from, DWORD channels) |
DllExport BOOL | CheckOrder () |
DllExport BOOL | CheckFaces () |
Public Attributes |
|
DWORD | vnum |
The expected number of vertices in the input
mesh. |
|
DWORD | fnum |
The expected number of faces in the input
mesh. |
|
Tab< UVVertSet > | vSet |
This data member stores changes in the
mapping vertices given as input. |
|
Tab< Point3 > | vCreate |
This data member stores mapping vertices
newly created as part of the MapDelta.
|
|
Tab< TVFace > | fCreate |
This data member stores map faces newly
created as part of the MapDelta.
|
|
Tab< FaceRemap > | fRemap |
This data member stores changes in which map
vertices are used by existing map faces. |
MapDelta | ( | ) | [inline] |
DllExport void ClearAllOps | ( | ) |
DllExport int NumVSet | ( | DWORD | inVNum | ) |
DllExport void SetInVNum | ( | DWORD | n | ) |
DllExport void SetInFNum | ( | DWORD | n | ) |
DWORD outVNum | ( | ) | [inline] |
DWORD outVNum | ( | DWORD | inVNum | ) | [inline] |
bool IsCreate | ( | DWORD | i | ) | [inline] |
DllExport DWORD SetID | ( | DWORD | i | ) |
DllExport DWORD VCreate | ( | UVVert * | v, |
int | num = 1 |
||
) |
DllExport void FCreate | ( | TVFace * | f, |
int | num = 1 |
||
) |
DllExport void FCreateDefault | ( | int | num = 1 |
) |
DllExport void FCreateQuad | ( | DWORD * | t | ) |
DllExport void FClone | ( | TVFace & | tf, |
DWORD | remapFlags = 0 , |
||
DWORD * | v = NULL |
||
) |
DllExport void FRemap | ( | DWORD | f, |
DWORD | flags, | ||
DWORD * | v | ||
) |
void FRemap | ( | FaceRemap & | fr | ) | [inline] |
DllExport DWORD RemapID | ( | DWORD | ff | ) |
DllExport DWORD IsRemapped | ( | DWORD | ff, |
DWORD | vid | ||
) |
DllExport void FDelete | ( | int | offset, |
BitArray & | fdel | ||
) |
DllExport void Set | ( | DWORD | i, |
const UVVert & | p | ||
) |
{ CopyMDChannels (from, MDELTA_ALL); return *this; }
UVVert* | tv - The map vertex array to change. This should be allocated to handle all the new map vertices in the vCreate array. |
TVFace* | tf - The map face array to change. This should be allocated to handle all the new map faces in the fCreate array. |
DWORD | inVNum - The actual number of map vertices (which doesn't have to match this MapDelta's vnum) in the input map. |
DWORD | inFNum - The actual number of map faces (which doesn't have to match this MapDelta's fnum) in the input map. |
DllExport void MyDebugPrint | ( | ) |
DllExport DWORD ChangeFlags | ( | ) |
DllExport void CopyMDChannels | ( | MapDelta & | from, |
DWORD | channels | ||
) |
DllExport BOOL CheckOrder | ( | ) |
DllExport BOOL CheckFaces | ( | ) |
DWORD vnum |
The expected number of vertices in the input mesh.
DWORD fnum |
The expected number of faces in the input mesh.
This data member stores mapping vertices newly created as part of the MapDelta.
These are stored in the order created.
This data member stores changes in which map vertices are used by existing map faces.
See Class FaceRemap for more information. These are stored in original face order, and there is never more than one per original face. At least one per new vertex.