CrystalSpace

Public API Reference

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

csTriangleMesh Class Reference

A mesh of triangles. More...

#include <trimesh.h>

List of all members.

Public Methods

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

csTriangleGetTriangles ()
 Query the array of triangles. More...

const csTriangleGetTriangles () const
 Query the array of triangles. More...

int GetTriangleCount () const
 Query the number of triangles. More...

void Clear ()
 Clear the mesh of triangles. More...

void SetSize (int count)
 Set the size of the triangle list. More...

void SetTriangles (csTriangle const *trigs, int count)
 Set the triangle array. The array is copied. More...


Protected Attributes

csGrowingArray< csTriangletriangles
 The triangles. More...


Detailed Description

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.

Definition at line 32 of file trimesh.h.


Member Function Documentation

void csTriangleMesh::AddTriangle int    a,
int    b,
int    c
 

Add a triangle to the mesh.

void csTriangleMesh::Clear  
 

Clear the mesh of triangles.

int csTriangleMesh::GetTriangleCount   const [inline]
 

Query the number of triangles.

Definition at line 55 of file trimesh.h.

References csGrowingArray::Length.

const csTriangle* csTriangleMesh::GetTriangles   const [inline]
 

Query the array of triangles.

Definition at line 51 of file trimesh.h.

References csGrowingArray::GetArray.

csTriangle* csTriangleMesh::GetTriangles   [inline]
 

Query the array of triangles.

Definition at line 49 of file trimesh.h.

References csGrowingArray::GetArray.

void csTriangleMesh::SetSize int    count
 

Set the size of the triangle list.

void csTriangleMesh::SetTriangles csTriangle const *    trigs,
int    count
 

Set the triangle array. The array is copied.


Member Data Documentation

csGrowingArray<csTriangle> csTriangleMesh::triangles [protected]
 

The triangles.

Definition at line 36 of file trimesh.h.


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