csTriangleMeshLOD Class Reference
A static class which performs the calculation of the best order to do the collapsing. More...
#include <trimeshlod.h>
Static Public Methods | |
void | CalculateLOD (csTriangleMesh *mesh, csTriangleVerticesCost *verts, int *translate, int *emerge_from) |
For the given mesh and a set of vertices calculate the best order in which to perform LOD reduction. |
Detailed Description
A static class which performs the calculation of the best order to do the collapsing.
Definition at line 104 of file trimeshlod.h.
Member Function Documentation
|
For the given mesh and a set of vertices calculate the best order in which to perform LOD reduction. This fills two arrays (which should have the same size as the number of vertices in 'verts'). 'translate' contains a mapping from the old order of vertices to the new one. The new ordering of vertices is done in a way so that the first vertex is the one which is always present in the model and with increasing detail, vertices are added in ascending vertex order. 'emerge_from' contains (for a given index in the new order) from which this vertex arises (or seen the other way around: to what this vertex had collapsed).
Note. The given 'mesh' and 'verts' objects are no longer valid after calling this function. Don't expect any useful information here. |
The documentation for this class was generated from the following file:
- csgeom/trimeshlod.h
Generated for Crystal Space by doxygen 1.2.18