![]() |
Public API Reference |
#include <polymesh.h>
Inheritance diagram for csPolygonMeshBox:
Public Methods | |
csPolygonMeshBox (const csBox3 &box) | |
Construct a cube polygon mesh. More... | |
void | SetBox (const csBox3 &box) |
Set the box. More... | |
virtual int | GetVertexCount () |
Get the number of vertices for this mesh. More... | |
virtual csVector3 * | GetVertices () |
Get the pointer to the array of vertices. More... | |
virtual int | GetPolygonCount () |
Get the number of polygons for this mesh. More... | |
virtual csMeshedPolygon * | GetPolygons () |
Get the pointer to the array of polygons. More... | |
virtual int | GetTriangleCount () |
Get the number of triangles for this mesh. More... | |
virtual csTriangle * | GetTriangles () |
Get the triangle table for this mesh. More... | |
virtual void | Lock () |
Lock the polygon mesh. More... | |
virtual void | Unlock () |
Unlock the polygon mesh. More... | |
virtual csFlags & | GetFlags () |
Get flags for this polygon mesh. More... | |
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. More... |
Definition at line 204 of file csgeom/polymesh.h.
|
Construct a cube polygon mesh.
Definition at line 218 of file csgeom/polymesh.h. References csMeshedPolygon::num_vertices, SCF_CONSTRUCT_IBASE, csFlags::SetAll, SetBox, and csMeshedPolygon::vertices. |
|
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 291 of file csgeom/polymesh.h. References uint32. |
|
Get flags for this polygon mesh. This is zero or more of the following:
Implements iPolygonMesh. Definition at line 290 of file csgeom/polymesh.h. |
|
Get the number of polygons for this mesh.
Implements iPolygonMesh. Definition at line 284 of file csgeom/polymesh.h. |
|
Get the pointer to the array of polygons.
Implements iPolygonMesh. Definition at line 285 of file csgeom/polymesh.h. |
|
Get the number of triangles for this mesh.
Implements iPolygonMesh. Definition at line 286 of file csgeom/polymesh.h. |
|
Get the triangle table for this mesh.
Implements iPolygonMesh. |
|
Get the number of vertices for this mesh.
Implements iPolygonMesh. Definition at line 282 of file csgeom/polymesh.h. |
|
Get the pointer to the array of vertices.
Implements iPolygonMesh. Definition at line 283 of file csgeom/polymesh.h. |
|
Lock the polygon mesh. This prevents the polygon and triangle data from being cleaned up. Implements iPolygonMesh. Definition at line 288 of file csgeom/polymesh.h. |
|
Set the box.
Definition at line 267 of file csgeom/polymesh.h. References csBox3::GetCorner. Referenced by csPolygonMeshBox. |
|
Unlock the polygon mesh. This allows clean up again. Implements iPolygonMesh. Definition at line 289 of file csgeom/polymesh.h. |