![]() |
Public API Reference |
#include <trimesh.h>
Public Methods | |
| void | AddTriangle (int a, int b, int c) |
| Add a triangle to the mesh. More... | |
| csTriangle * | GetTriangles () |
| Query the array of triangles. More... | |
| const csTriangle * | GetTriangles () 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 | |
| csDirtyAccessArray< csTriangle > | triangles |
| The triangles. More... | |
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.
|
||||||||||||||||
|
Add a triangle to the mesh.
|
|
|
Clear the mesh of triangles.
|
|
|
Query the number of triangles.
Definition at line 55 of file trimesh.h. References csArray< T >::Length. |
|
|
Query the array of triangles.
Definition at line 51 of file trimesh.h. References csDirtyAccessArray::GetArray. |
|
|
Query the array of triangles.
Definition at line 49 of file trimesh.h. References csDirtyAccessArray::GetArray. |
|
|
Set the size of the triangle list.
|
|
||||||||||||
|
Set the triangle array. The array is copied.
|
|
|
The triangles.
|