csPolygonMeshBox Class Reference
[Geometry utilities]
A convenience polygon mesh implementation that represents a cube.
More...
#include <csgeom/polymesh.h>
Inheritance diagram for csPolygonMeshBox:

Public Member Functions | |
csPolygonMeshBox (const csBox3 &box) | |
Construct a cube polygon mesh. | |
void | SetBox (const csBox3 &box) |
Set the box. | |
virtual int | GetVertexCount () |
Get the number of vertices for this mesh. | |
virtual csVector3 * | GetVertices () |
Get the pointer to the array of vertices. | |
virtual int | GetPolygonCount () |
Get the number of polygons for this mesh. | |
virtual csMeshedPolygon * | GetPolygons () |
Get the pointer to the array of polygons. | |
virtual int | GetTriangleCount () |
Get the number of triangles for this mesh. | |
virtual csTriangle * | GetTriangles () |
Get the triangle table for this mesh. | |
virtual void | Lock () |
Lock the polygon mesh. | |
virtual void | Unlock () |
Unlock the polygon mesh. | |
virtual csFlags & | GetFlags () |
Get flags for this polygon mesh. | |
virtual uint32 | GetChangeNumber () const |
When this number changes you know the polygon mesh has changed (deformation has occured) since the last time you got another number from this function. |
Detailed Description
A convenience polygon mesh implementation that represents a cube.
Definition at line 207 of file polymesh.h.
Constructor & Destructor Documentation
|
Construct a cube polygon mesh.
Definition at line 221 of file polymesh.h. References CS_POLYMESH_CLOSED, CS_POLYMESH_CONVEX, CS_POLYMESH_TRIANGLEMESH, and SCF_CONSTRUCT_IBASE. |
Member Function Documentation
|
When this number changes you know the polygon mesh has changed (deformation has occured) since the last time you got another number from this function.
Implements iPolygonMesh. Definition at line 295 of file polymesh.h. |
|
Get flags for this polygon mesh. This is zero or a combination of the following flags:
Implements iPolygonMesh. Definition at line 294 of file polymesh.h. |
|
Get the number of polygons for this mesh.
Implements iPolygonMesh. Definition at line 288 of file polymesh.h. |
|
Get the pointer to the array of polygons.
Implements iPolygonMesh. Definition at line 289 of file polymesh.h. |
|
Get the number of triangles for this mesh.
Implements iPolygonMesh. Definition at line 290 of file polymesh.h. |
|
Get the triangle table for this mesh.
Implements iPolygonMesh. |
|
Get the number of vertices for this mesh.
Implements iPolygonMesh. Definition at line 286 of file polymesh.h. |
|
Get the pointer to the array of vertices.
Implements iPolygonMesh. Definition at line 287 of file polymesh.h. |
|
Lock the polygon mesh. This prevents the polygon and triangle data from being cleaned up. Implements iPolygonMesh. Definition at line 292 of file polymesh.h. |
|
Set the box.
Definition at line 271 of file polymesh.h. References csBox3::GetCorner(). |
|
Unlock the polygon mesh. This allows clean up again. Implements iPolygonMesh. Definition at line 293 of file polymesh.h. |
The documentation for this class was generated from the following file:
- csgeom/polymesh.h
Generated for Crystal Space by doxygen 1.3.9.1