csTriangleMesh Class Reference
A mesh of triangles. More...
#include <csgeom/trimesh.h>
Public Member Functions | |
void | AddTriangle (int a, int b, int c) |
Add a triangle to the mesh. | |
csTriangle * | GetTriangles () |
Query the array of triangles. | |
const csTriangle * | GetTriangles () const |
Query the array of triangles. | |
size_t | GetTriangleCount () const |
Query the number of triangles. | |
void | Clear () |
Clear the mesh of triangles. | |
void | SetSize (int count) |
Set the size of the triangle list. | |
void | SetTriangles (csTriangle const *trigs, int count) |
Set the triangle array. The array is copied. | |
Protected Attributes | |
csDirtyAccessArray< csTriangle > | triangles |
The triangles. |
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 34 of file trimesh.h.
Member Function Documentation
|
Add a triangle to the mesh.
|
|
Clear the mesh of triangles.
|
|
Query the number of triangles.
Definition at line 57 of file trimesh.h. References csArray< T, ElementHandler, MemoryAllocator >::Length(), and triangles. |
|
Query the array of triangles.
Definition at line 53 of file trimesh.h. References csDirtyAccessArray< T >::GetArray(), and triangles. |
|
Query the array of triangles.
Definition at line 51 of file trimesh.h. References csDirtyAccessArray< T >::GetArray(), and triangles. |
|
Set the size of the triangle list.
|
|
Set the triangle array. The array is copied.
|
Member Data Documentation
|
The triangles.
Definition at line 38 of file trimesh.h. Referenced by GetTriangleCount(), and GetTriangles(). |
The documentation for this class was generated from the following file:
- csgeom/trimesh.h
Generated for Crystal Space by doxygen 1.3.9.1