csTriangleMesh Class Reference
[Geometry utilities]
A mesh of triangles.
More...
#include <csgeom/trimesh.h>
Inherits scfImplementation1<csTriangleMesh, iTriangleMesh>.
Public Member Functions | |
void | AddTriangle (int a, int b, int c) |
Add a triangle to the mesh. | |
void | AddTriangleMesh (const csTriangleMesh &tm) |
Add another triangle mesh to this one. | |
void | AddVertex (const csVector3 &v) |
Add a vertex to the mesh. | |
void | Clear () |
Clear the mesh of triangles. | |
virtual size_t | GetTriangleCount () |
Query the number of triangles. | |
size_t | GetTriangleCount () const |
Query the number of triangles. | |
const csTriangle * | GetTriangles () const |
Query the array of triangles. | |
virtual csTriangle * | GetTriangles () |
Query the array of triangles. | |
size_t | GetVertexCount () const |
Get the number of vertices for this mesh. | |
virtual size_t | GetVertexCount () |
Get the number of vertices for this mesh. | |
const csVector3 * | GetVertices () const |
Get the pointer to the array of vertices. | |
virtual csVector3 * | GetVertices () |
Get the pointer to the array of vertices. | |
csTriangleMesh & | operator+= (const csTriangleMesh &tm) |
Adds another triangle mesh to this one. | |
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 45 of file trimesh.h.
Member Function Documentation
void csTriangleMesh::AddTriangle | ( | int | a, | |
int | b, | |||
int | c | |||
) |
Add a triangle to the mesh.
void csTriangleMesh::AddTriangleMesh | ( | const csTriangleMesh & | tm | ) |
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.
virtual size_t csTriangleMesh::GetTriangleCount | ( | ) | [inline, virtual] |
size_t csTriangleMesh::GetTriangleCount | ( | ) | const [inline] |
const csTriangle* csTriangleMesh::GetTriangles | ( | ) | const [inline] |
virtual csTriangle* csTriangleMesh::GetTriangles | ( | ) | [inline, virtual] |
size_t csTriangleMesh::GetVertexCount | ( | ) | const [inline] |
virtual size_t csTriangleMesh::GetVertexCount | ( | ) | [inline, virtual] |
const csVector3* csTriangleMesh::GetVertices | ( | ) | const [inline] |
virtual csVector3* csTriangleMesh::GetVertices | ( | ) | [inline, virtual] |
csTriangleMesh& csTriangleMesh::operator+= | ( | const csTriangleMesh & | tm | ) |
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
csDirtyAccessArray<csTriangle> csTriangleMesh::triangles [protected] |
The documentation for this class was generated from the following file:
- csgeom/trimesh.h
Generated for Crystal Space 1.4.0 by doxygen 1.5.8