# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

NL3D::CMRMLevelDetail Class Reference

Degradation Control for MRM. More...

#include <mrm_level_detail.h>

List of all members.

Public Methods

 CMRMLevelDetail ()
 Constructor. More...

void compileDistanceSetup ()
 compile OODistanceDelta and DistancePow. More...

float getLevelDetailFromDist (float dist)
 return a float [0,1], computed from a distance (should be >0). More...

float getNumTriangles (float dist)
 return number of triangles for a distance. More...

float getLevelDetailFromPolyCount (float polygonCount)
 return a float [0,1], computed from number of poly wanted (should be >0). More...


Public Attributes

uint32 MinFaceUsed
 For Load balancing, the min number of faces this MRM use. More...

uint32 MaxFaceUsed
 For Load balancing, the max number of faces this MRM use. More...

float DistanceFinest
 The MRM has its max faces when dist<=DistanceFinest. nlassert if <0. More...

float DistanceMiddle
 The MRM has 50% of its faces at dist==DistanceMiddle. nlassert if <= DistanceFinest. More...

float DistanceCoarsest
 The MRM has faces/Divisor when dist>=DistanceCoarsest. nlassert if <= DistanceMiddle. More...

float OODistanceDelta
 compiled info (public for faster serial). More...

float DistancePow


Detailed Description

Degradation Control for MRM.

used by CMeshMRM and CSkeletonModel

Author:
Lionel Berenguier , Nevrax France
Date:
2002

Definition at line 51 of file mrm_level_detail.h.


Constructor & Destructor Documentation

NL3D::CMRMLevelDetail::CMRMLevelDetail   [inline]
 

Constructor.

Definition at line 73 of file mrm_level_detail.h.


Member Function Documentation

void NL3D::CMRMLevelDetail::compileDistanceSetup  
 

compile OODistanceDelta and DistancePow.

Definition at line 37 of file mrm_level_detail.cpp.

References DistanceCoarsest, DistanceFinest, DistanceMiddle, DistancePow, and OODistanceDelta.

float NL3D::CMRMLevelDetail::getLevelDetailFromDist float    dist
 

return a float [0,1], computed from a distance (should be >0).

Definition at line 50 of file mrm_level_detail.cpp.

References DistanceCoarsest, DistanceFinest, DistancePow, and OODistanceDelta.

Referenced by getNumTriangles.

float NL3D::CMRMLevelDetail::getLevelDetailFromPolyCount float    polygonCount [inline]
 

return a float [0,1], computed from number of poly wanted (should be >0).

Definition at line 101 of file mrm_level_detail.h.

References NLMISC::clamp, MaxFaceUsed, MinFaceUsed, and NL3D_MRM_LD_SHIFT_POLY_COUNT.

float NL3D::CMRMLevelDetail::getNumTriangles float    dist [inline]
 

return number of triangles for a distance.

Definition at line 82 of file mrm_level_detail.h.

References getLevelDetailFromDist, MaxFaceUsed, MinFaceUsed, and NL3D_MRM_LD_SHIFT_POLY_COUNT.


Member Data Documentation

float NL3D::CMRMLevelDetail::DistanceCoarsest
 

The MRM has faces/Divisor when dist>=DistanceCoarsest. nlassert if <= DistanceMiddle.

Definition at line 65 of file mrm_level_detail.h.

Referenced by compileDistanceSetup, and getLevelDetailFromDist.

float NL3D::CMRMLevelDetail::DistanceFinest
 

The MRM has its max faces when dist<=DistanceFinest. nlassert if <0.

Definition at line 61 of file mrm_level_detail.h.

Referenced by compileDistanceSetup, and getLevelDetailFromDist.

float NL3D::CMRMLevelDetail::DistanceMiddle
 

The MRM has 50% of its faces at dist==DistanceMiddle. nlassert if <= DistanceFinest.

Definition at line 63 of file mrm_level_detail.h.

Referenced by compileDistanceSetup.

float NL3D::CMRMLevelDetail::DistancePow
 

Definition at line 69 of file mrm_level_detail.h.

Referenced by compileDistanceSetup, and getLevelDetailFromDist.

uint32 NL3D::CMRMLevelDetail::MaxFaceUsed
 

For Load balancing, the max number of faces this MRM use.

Definition at line 58 of file mrm_level_detail.h.

Referenced by getLevelDetailFromPolyCount, and getNumTriangles.

uint32 NL3D::CMRMLevelDetail::MinFaceUsed
 

For Load balancing, the min number of faces this MRM use.

Definition at line 56 of file mrm_level_detail.h.

Referenced by getLevelDetailFromPolyCount, and getNumTriangles.

float NL3D::CMRMLevelDetail::OODistanceDelta
 

compiled info (public for faster serial).

Definition at line 68 of file mrm_level_detail.h.

Referenced by compileDistanceSetup, and getLevelDetailFromDist.


The documentation for this class was generated from the following files: