In file include/csengine/triangle.h:

## class csTriangleVertex

> The representation of a vertex in a triangle mesh

### Public Fields

int* con_triangles
  Triangles that this vertex is connected to.
int* con_vertices
  Other vertices that this vertex is connected to.
float cost
  Precalculated minimal cost of collapsing this vertex to some other.
bool deleted
  True if already deleted.
int idx
  Index of this vertex.
int num_con_triangles
  Number of triangles.
int num_con_vertices
  Number of vertices.
csVector3 pos
  Position of this vertex in 3D space.
int to_vertex
  Vertex to collapse to with minimal cost.

### Public Methods

void AddTriangle(int idx)
void AddVertex(int idx)
void CalculateCost(csTriangleVertices* vertices)
  Calculate the minimal cost of collapsing this vertex to some other
csTriangleVertex()
bool DelVertex(int idx)
void ReplaceVertex(int old, int replace)
~csTriangleVertex()

## Documentation

> The representation of a vertex in a triangle mesh. This is basicly used as a temporary structure to be able to calculate the cost of collapsing this vertex more quickly.

`csVector3 pos`
  Position of this vertex in 3D space.

`int idx`
  Index of this vertex.

`bool deleted`
  True if already deleted.

`int* con_triangles`
  Triangles that this vertex is connected to.

`int num_con_triangles`
  Number of triangles.

`int* con_vertices`
  Other vertices that this vertex is connected to.

`int num_con_vertices`
  Number of vertices.

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

`int to_vertex`
  Vertex to collapse to with minimal cost.

`csTriangleVertex()`

`~csTriangleVertex()`

`void AddTriangle(int idx)`

`void AddVertex(int idx)`

`bool DelVertex(int idx)`

`void ReplaceVertex(int old, int replace)`

`void CalculateCost(csTriangleVertices* vertices)`
  Calculate the minimal cost of collapsing this vertex to some other. Also remember which other vertex was selected for collapsing to.

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