In file include/csengine/triangle.h:

class csTriangleMesh

A mesh of triangles

Public Methods

void AddTriangle(int a, int b, int c)
Add a triangle to the mesh.
void Clear()
Clear the mesh of triangles.
csTriangleMesh(const csTriangleMesh& mesh)
csTriangleMesh()
int GetNumTriangles()
Query the number of triangles.
csTriangle* GetTriangles()
Query the array of triangles.
void Reset()
Reset the mesh of triangles (don't deallocate the internal structures yet).
~csTriangleMesh()

Private Fields

csTriangle* triangles
The triangles.

Documentation

A mesh of triangles. Note that a mesh of triangles is only valid if used in combination with a vertex or edge table. Every triangle is then a set of three indices in that table.
csTriangle* triangles
The triangles.

csTriangleMesh()

csTriangleMesh(const csTriangleMesh& mesh)

~csTriangleMesh()

void AddTriangle(int a, int b, int c)
Add a triangle to the mesh.

csTriangle* GetTriangles()
Query the array of triangles.

int GetNumTriangles()
Query the number of triangles.

void Clear()
Clear the mesh of triangles.

void Reset()
Reset the mesh of triangles (don't deallocate the internal structures yet).


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