A mesh of triangles.
More...
#include <csgeom/trimesh.h>
Inherits scfImplementation1< csTriangleMesh, iTriangleMesh >.
List of all members.
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 45 of file trimesh.h.
Member Function Documentation
void csTriangleMesh::AddTriangle |
( |
int |
a, |
|
|
int |
b, |
|
|
int |
c | |
|
) |
| | |
Add a triangle to the mesh.
Add another triangle mesh to this one.
void csTriangleMesh::AddVertex |
( |
const csVector3 & |
v |
) |
|
Add a vertex to the mesh.
void csTriangleMesh::Clear |
( |
|
) |
|
Clear the mesh of triangles.
size_t csTriangleMesh::GetTriangleCount |
( |
|
) |
const [inline] |
Query the number of triangles.
Definition at line 87 of file trimesh.h.
virtual size_t csTriangleMesh::GetTriangleCount |
( |
|
) |
[inline, virtual] |
Query the number of triangles.
Definition at line 89 of file trimesh.h.
virtual csTriangle* csTriangleMesh::GetTriangles |
( |
|
) |
[inline, virtual] |
Query the array of triangles.
Definition at line 81 of file trimesh.h.
const csTriangle* csTriangleMesh::GetTriangles |
( |
|
) |
const [inline] |
Query the array of triangles.
Definition at line 83 of file trimesh.h.
size_t csTriangleMesh::GetVertexCount |
( |
|
) |
const [inline] |
Get the number of vertices for this mesh.
Definition at line 70 of file trimesh.h.
virtual size_t csTriangleMesh::GetVertexCount |
( |
|
) |
[inline, virtual] |
Get the number of vertices for this mesh.
Definition at line 68 of file trimesh.h.
virtual csVector3* csTriangleMesh::GetVertices |
( |
|
) |
[inline, virtual] |
Get the pointer to the array of vertices.
Definition at line 72 of file trimesh.h.
const csVector3* csTriangleMesh::GetVertices |
( |
|
) |
const [inline] |
Get the pointer to the array of vertices.
Definition at line 74 of file trimesh.h.
Adds another triangle mesh to this one.
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
The triangles.
Definition at line 50 of file trimesh.h.
The documentation for this class was generated from the following file: