NL3D::CMRMMeshFinal Class Reference

#include <mrm_mesh.h>


Detailed Description

An internal MRM mesh representation for MRM, with All lods information. USER DO NOT USE IT.
Author:
Lionel Berenguier

Nevrax France

Date:
2000
See also:
CMRMBuilder

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< CLodLods
 the finals Lods of the MRM.

std::vector< CMRMBlendShapeFinalMRMBlendShapesFinals
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< CWedgeWedges

Private Types

typedef std::map< CWedge,
sint
TWedgeMap

Private Attributes

TWedgeMap _WedgeMap


Member Typedef Documentation

typedef std::map<CWedge, sint> NL3D::CMRMMeshFinal::TWedgeMap [private]
 

Definition at line 316 of file mrm_mesh.h.


Constructor & Destructor Documentation

NL3D::CMRMMeshFinal::CMRMMeshFinal  )  [inline]
 

Definition at line 295 of file mrm_mesh.h.

00296         {
00297                 NumAttributes= 0;
00298         }


Member Function Documentation

sint NL3D::CMRMMeshFinal::findInsertWedge const CWedge w  ) 
 

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 }

void NL3D::CMRMMeshFinal::reset  )  [inline]
 

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         }


Field Documentation

TWedgeMap NL3D::CMRMMeshFinal::_WedgeMap [private]
 

Definition at line 317 of file mrm_mesh.h.

Referenced by findInsertWedge(), and reset().

std::vector<CLod> NL3D::CMRMMeshFinal::Lods
 

the finals Lods of the MRM.

Definition at line 289 of file mrm_mesh.h.

Referenced by NL3D::CMRMBuilder::buildFinalMRM(), and NL3D::CMRMBuilder::buildMeshBuildMrm().

std::vector<CMRMBlendShapeFinal> NL3D::CMRMMeshFinal::MRMBlendShapesFinals
 

Definition at line 292 of file mrm_mesh.h.

Referenced by NL3D::CMRMBuilder::buildFinalMRM(), and NL3D::CMRMBuilder::buildMeshBuildMrm().

sint NL3D::CMRMMeshFinal::NGeomSpace
 

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().

sint NL3D::CMRMMeshFinal::NumAttributes
 

The number of used attributes of the MRMMesh.

Definition at line 285 of file mrm_mesh.h.

Referenced by NL3D::CMRMBuilder::buildFinalMRM().

bool NL3D::CMRMMeshFinal::Skinned
 

If the Mesh is skinned.

Definition at line 287 of file mrm_mesh.h.

Referenced by NL3D::CMRMBuilder::buildFinalMRM().

std::vector<CWedge> NL3D::CMRMMeshFinal::Wedges
 

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().


The documentation for this class was generated from the following files:
Generated on Tue Mar 16 06:56:58 2004 for NeL by doxygen 1.3.6