In file include/csengine/triangle.h:

class csLOD

A static class which performs the calculation of the best order to do the collapsing

Public Methods

static void CalculateLOD (csTriangleMesh* mesh, csTriangleVertices* 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

Documentation

A static class which performs the calculation of the best order to do the collapsing
static void CalculateLOD(csTriangleMesh* mesh, csTriangleVertices* 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. 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 anything useful information here.


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de