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>
Public Member Functions | |
csPolygonMesh () | |
Construct a polygon mesh. | |
virtual uint32 | GetChangeNumber () const |
virtual csFlags & | GetFlags () |
virtual int | GetPolygonCount () |
int * | GetPolygonIndices () |
Get the polygon index table. | |
virtual csMeshedPolygon * | GetPolygons () |
virtual int | GetTriangleCount () |
virtual csTriangle * | GetTriangles () |
virtual int | GetVertexCount () |
virtual csVector3 * | GetVertices () |
virtual void | Lock () |
void | SetPolygonCount (int po_count) |
Set polygon count. | |
void | SetPolygonIndexCount (int po_index_count) |
Set polygon index count. | |
void | SetPolygonIndices (int *po_indices, bool delete_po_indices) |
Set polygon indices used by SetPolygons(). | |
void | SetPolygons (csMeshedPolygon *po, int po_count, bool delete_po) |
Set the polygons to use for this polygon mesh. | |
void | SetVertexCount (int vt_count) |
Set vertex count. | |
void | SetVertices (csVector3 *vt, int vt_count, bool delete_vt) |
Set the vertices to use for this polygon mesh. | |
void | ShapeChanged () |
Indicate that the shape has changed. | |
virtual void | Unlock () |
virtual | ~csPolygonMesh () |
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 45 of file polymesh.h.
Constructor & Destructor Documentation
|
Construct a polygon mesh.
Definition at line 74 of file polymesh.h. |
Member Function Documentation
|
Get the polygon index table.
Definition at line 148 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 171 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 140 of file polymesh.h. |
|
Set polygon indices used by SetPolygons().
Definition at line 128 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 117 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 158 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 103 of file polymesh.h. |
|
Indicate that the shape has changed.
Definition at line 182 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.4.4