CrystalSpace

Public API Reference

Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

csTriangleVerticesCost Class Reference

A class which holds vertices and connectivity information for a triangle mesh. More...

#include <trimeshlod.h>

List of all members.

Public Methods

 csTriangleVerticesCost (csTriangleMesh *mesh, csVector3 *verts, int num_verts)
 Build vertex table for a triangle mesh.

void UpdateVertices (csVector3 *verts)
 Update vertex table for a given set of vertices (with the same number as at init).

void CalculateCost ()
 Calculate the cost of all vertices.

int GetMinimalCostVertex ()
 Return the vertex id with minimal cost.

void Dump ()
 Dump connectivity information@ TEMPORARY.


Detailed Description

A class which holds vertices and connectivity information for a triangle mesh.

This is a general vertices structure but it is mostly useful for LOD generation since every vertex contains information which helps selecting the best vertices for collapsing.

Definition at line 65 of file trimeshlod.h.


Constructor & Destructor Documentation

csTriangleVerticesCost::csTriangleVerticesCost csTriangleMesh   mesh,
csVector3   verts,
int    num_verts
 

Build vertex table for a triangle mesh.


Member Function Documentation

void csTriangleVerticesCost::CalculateCost  
 

Calculate the cost of all vertices.

void csTriangleVerticesCost::Dump  
 

Dump connectivity information@ TEMPORARY.

@

int csTriangleVerticesCost::GetMinimalCostVertex  
 

Return the vertex id with minimal cost.

void csTriangleVerticesCost::UpdateVertices csVector3   verts
 

Update vertex table for a given set of vertices (with the same number as at init).


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.2.18