#include <mrm_mesh.h>
Nevrax France
Definition at line 203 of file mrm_mesh.h.
Public Member Functions | |
CMRMMeshFinal () | |
sint | findInsertWedge (const CWedge &w) |
add a wedge to this mesh, or return id if exist yet. | |
void | reset () |
Data Fields | |
std::vector< CLod > | Lods |
the finals Lods of the MRM. | |
std::vector< CMRMBlendShapeFinal > | MRMBlendShapesFinals |
sint | NGeomSpace |
This tells the number of empty wedges, for geomorph. | |
sint | NumAttributes |
The number of used attributes of the MRMMesh. | |
bool | Skinned |
If the Mesh is skinned. | |
std::vector< CWedge > | Wedges |
Private Types | |
typedef std::map< CWedge, sint > | TWedgeMap |
Private Attributes | |
TWedgeMap | _WedgeMap |
|
Definition at line 316 of file mrm_mesh.h. |
|
Definition at line 295 of file mrm_mesh.h.
00296 { 00297 NumAttributes= 0; 00298 } |
|
add a wedge to this mesh, or return id if exist yet.
Definition at line 51 of file mrm_mesh.cpp. References _WedgeMap, sint, and w. Referenced by NL3D::CMRMBuilder::buildFinalMRM().
00052 { 00053 sint ret; 00054 TWedgeMap::iterator it; 00055 it= _WedgeMap.find(w); 00056 00057 // if not found, must add it. 00058 if(it==_WedgeMap.end()) 00059 { 00060 ret= Wedges.size(); 00061 // insert into the map, with good id. 00062 _WedgeMap.insert(make_pair(w, ret)); 00063 // add it to the array. 00064 Wedges.push_back(w); 00065 } 00066 else 00067 { 00068 ret= it->second; 00069 } 00070 00071 return ret; 00072 } |
|
Definition at line 305 of file mrm_mesh.h. References _WedgeMap. Referenced by NL3D::CMRMBuilder::buildFinalMRM().
00306 { 00307 Wedges.clear(); 00308 _WedgeMap.clear(); 00309 Lods.clear(); 00310 NumAttributes= 0; 00311 } |
|
Definition at line 317 of file mrm_mesh.h. Referenced by findInsertWedge(), and reset(). |
|
the finals Lods of the MRM.
Definition at line 289 of file mrm_mesh.h. Referenced by NL3D::CMRMBuilder::buildFinalMRM(), and NL3D::CMRMBuilder::buildMeshBuildMrm(). |
|
Definition at line 292 of file mrm_mesh.h. Referenced by NL3D::CMRMBuilder::buildFinalMRM(), and NL3D::CMRMBuilder::buildMeshBuildMrm(). |
|
This tells the number of empty wedges, for geomorph.
Definition at line 283 of file mrm_mesh.h. Referenced by NL3D::CMRMBuilder::buildFinalMRM(), and NL3D::CMRMBuilder::buildMeshBuildMrm(). |
|
The number of used attributes of the MRMMesh.
Definition at line 285 of file mrm_mesh.h. Referenced by NL3D::CMRMBuilder::buildFinalMRM(). |
|
If the Mesh is skinned.
Definition at line 287 of file mrm_mesh.h. Referenced by NL3D::CMRMBuilder::buildFinalMRM(). |
|
The wedges of the final mesh. Contains all Wedges for all lods, sorted from LOD0 to LODN, with additional empty wedges, for geomorph. Definition at line 281 of file mrm_mesh.h. Referenced by NL3D::CMRMBuilder::buildFinalMRM(), and NL3D::CMRMBuilder::buildMeshBuildMrm(). |