csPolygonMesh Class Reference
[Geometry utilities]
A convenience polygon mesh implementation that you can feed with vertices and polygons from another source.
More...
#include <csgeom/polymesh.h>
Inheritance diagram for csPolygonMesh:

Public Member Functions | |
csPolygonMesh () | |
Construct a polygon mesh. | |
void | SetVertices (csVector3 *vt, int vt_count, bool delete_vt) |
Set the vertices to use for this polygon mesh. | |
void | SetPolygons (csMeshedPolygon *po, int po_count, bool delete_po) |
Set the polygons to use for this polygon mesh. | |
void | SetPolygonIndices (int *po_indices, bool delete_po_indices) |
Set polygon indices used by SetPolygons(). | |
void | SetPolygonIndexCount (int po_index_count) |
Set polygon index count. | |
int * | GetPolygonIndices () |
Get the polygon index table. | |
void | SetVertexCount (int vt_count) |
Set vertex count. | |
void | SetPolygonCount (int po_count) |
Set polygon count. | |
void | ShapeChanged () |
Indicate that the shape has changed. | |
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 you can feed with vertices and polygons from another source.It will automatically calculate the triangles if requested.
Definition at line 39 of file polymesh.h.
Constructor & Destructor Documentation
|
Construct a polygon mesh.
Definition at line 67 of file polymesh.h. References 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 201 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 200 of file polymesh.h. |
|
Get the number of polygons for this mesh.
Implements iPolygonMesh. Definition at line 186 of file polymesh.h. |
|
Get the polygon index table.
Definition at line 143 of file polymesh.h. |
|
Get the pointer to the array of polygons.
Implements iPolygonMesh. Definition at line 187 of file polymesh.h. |
|
Get the number of triangles for this mesh.
Implements iPolygonMesh. Definition at line 188 of file polymesh.h. |
|
Get the triangle table for this mesh.
Implements iPolygonMesh. Definition at line 193 of file polymesh.h. |
|
Get the number of vertices for this mesh.
Implements iPolygonMesh. Definition at line 184 of file polymesh.h. |
|
Get the pointer to the array of vertices.
Implements iPolygonMesh. Definition at line 185 of file polymesh.h. |
|
Lock the polygon mesh. This prevents the polygon and triangle data from being cleaned up. Implements iPolygonMesh. Definition at line 198 of file polymesh.h. |
|
Set polygon count. This will make room for the specified number of polygons so that the user can update them. This class will delete the polygons itself later. Definition at line 166 of file polymesh.h. |
|
Set polygon index count. This will make room for the specified number of polygon indices so that the user can update them. This class will delete the indices itself later. Definition at line 135 of file polymesh.h. |
|
Set polygon indices used by SetPolygons().
Definition at line 123 of file polymesh.h. |
|
Set the polygons to use for this polygon mesh. If 'delete_po' is true then this class will do the cleanup itself at destruction. Otherwise you have to make sure that the pointer to the polygons remains valid until this object is deleted. Definition at line 112 of file polymesh.h. |
|
Set vertex count. This will make room for the specified number of vertices so that the user can update them. This class will delete the vertices itself later. Definition at line 153 of file polymesh.h. |
|
Set the vertices to use for this polygon mesh. If 'delete_vt' is true then this class will do the cleanup itself at destruction. Otherwise you have to make sure that the pointer to the vertices remains valid until this object is deleted. Definition at line 98 of file polymesh.h. |
|
Indicate that the shape has changed.
Definition at line 177 of file polymesh.h. |
|
Unlock the polygon mesh. This allows clean up again. Implements iPolygonMesh. Definition at line 199 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