CrystalSpace

Public API Reference

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

csTriangleVertexCost Class Reference

The representation of a vertex in a triangle mesh. More...

#include <trimeshlod.h>

Inheritance diagram for csTriangleVertexCost:

csTriangleVertex List of all members.

Public Methods

void CalculateCost (csTriangleVerticesCost *vertices)
 Calculate the minimal cost of collapsing this vertex to some other.


Public Attributes

bool deleted
 True if already deleted.

float cost
 Precalculated minimal cost of collapsing this vertex to some other.

int to_vertex
 Vertex to collapse to with minimal cost.


Detailed Description

The representation of a vertex in a triangle mesh.

This is basically used as a temporary structure to be able to calculate the cost of collapsing this vertex more quickly.

Definition at line 34 of file trimeshlod.h.


Member Function Documentation

void csTriangleVertexCost::CalculateCost csTriangleVerticesCost   vertices
 

Calculate the minimal cost of collapsing this vertex to some other.

Also remember which other vertex was selected for collapsing to.


Member Data Documentation

float csTriangleVertexCost::cost
 

Precalculated minimal cost of collapsing this vertex to some other.

Definition at line 41 of file trimeshlod.h.

bool csTriangleVertexCost::deleted
 

True if already deleted.

Definition at line 38 of file trimeshlod.h.

int csTriangleVertexCost::to_vertex
 

Vertex to collapse to with minimal cost.

Definition at line 43 of file trimeshlod.h.


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