![]() |
Public API Reference |
A convenience triangle mesh implementation that represents a cube. More...
#include <csgeom/trimesh.h>
Public Member Functions | |
| csTriangleMeshBox (const csBox3 &box) | |
| Construct a cube triangle mesh. | |
| virtual uint32 | GetChangeNumber () const |
| When this number changes you know the triangle mesh has changed (deformation has occured) since the last time you got another number from this function. | |
| virtual csFlags & | GetFlags () |
| Get flags for this triangle mesh. | |
| virtual size_t | GetTriangleCount () |
| Get the number of triangles for this mesh. | |
| virtual csTriangle * | GetTriangles () |
| Get the triangle table for this mesh. | |
| virtual size_t | GetVertexCount () |
| Get the number of vertices for this mesh. | |
| virtual csVector3 * | GetVertices () |
| Get the pointer to the array of vertices. | |
| virtual void | Lock () |
| Lock the triangle mesh. | |
| void | SetBox (const csBox3 &box) |
| Set the box. | |
| virtual void | Unlock () |
| Unlock the triangle mesh. | |
A convenience triangle mesh implementation that represents a cube.
| csTriangleMeshBox::csTriangleMeshBox | ( | const csBox3 & | box | ) | [inline] |
| virtual uint32 csTriangleMeshBox::GetChangeNumber | ( | ) | const [inline, virtual] |
When this number changes you know the triangle mesh has changed (deformation has occured) since the last time you got another number from this function.
Implements iTriangleMesh.
| virtual csFlags& csTriangleMeshBox::GetFlags | ( | ) | [inline, virtual] |
Get flags for this triangle mesh.
This is zero or a combination of the following flags:
Note that if neither CS_TRIMESH_CLOSED nor CS_TRIMESH_NOTCLOSED are set then the closed state is not known. Setting both is illegal. Note that if neither CS_TRIMESH_CONVEX nor CS_TRIMESH_NOTCONVEX are set then the convex state is not known. Setting both is illegal.
Implements iTriangleMesh.
| virtual size_t csTriangleMeshBox::GetTriangleCount | ( | ) | [inline, virtual] |
Get the number of triangles for this mesh.
Implements iTriangleMesh.
| virtual csTriangle* csTriangleMeshBox::GetTriangles | ( | ) | [inline, virtual] |
Get the triangle table for this mesh.
Implements iTriangleMesh.
| virtual size_t csTriangleMeshBox::GetVertexCount | ( | ) | [inline, virtual] |
Get the number of vertices for this mesh.
Implements iTriangleMesh.
| virtual csVector3* csTriangleMeshBox::GetVertices | ( | ) | [inline, virtual] |
Get the pointer to the array of vertices.
Implements iTriangleMesh.
| virtual void csTriangleMeshBox::Lock | ( | ) | [inline, virtual] |
Lock the triangle mesh.
This prevents the triangle data from being cleaned up.
Implements iTriangleMesh.
| void csTriangleMeshBox::SetBox | ( | const csBox3 & | box | ) | [inline] |
| virtual void csTriangleMeshBox::Unlock | ( | ) | [inline, virtual] |