CrystalSpace

Public API Reference

Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

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>

List of all members.

Public Member Functions

 csPolygonMesh ()
 Construct a polygon mesh.
virtual uint32 GetChangeNumber () const
virtual csFlagsGetFlags ()
virtual int GetPolygonCount ()
int * GetPolygonIndices ()
 Get the polygon index table.
virtual csMeshedPolygonGetPolygons ()
virtual int GetTriangleCount ()
virtual csTriangleGetTriangles ()
virtual int GetVertexCount ()
virtual csVector3GetVertices ()
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

csPolygonMesh::csPolygonMesh  )  [inline]
 

Construct a polygon mesh.

Definition at line 74 of file polymesh.h.


Member Function Documentation

int* csPolygonMesh::GetPolygonIndices  )  [inline]
 

Get the polygon index table.

Definition at line 148 of file polymesh.h.

void csPolygonMesh::SetPolygonCount int  po_count  )  [inline]
 

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.

void csPolygonMesh::SetPolygonIndexCount int  po_index_count  )  [inline]
 

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.

void csPolygonMesh::SetPolygonIndices int *  po_indices,
bool  delete_po_indices
[inline]
 

Set polygon indices used by SetPolygons().

Definition at line 128 of file polymesh.h.

void csPolygonMesh::SetPolygons csMeshedPolygon po,
int  po_count,
bool  delete_po
[inline]
 

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.

void csPolygonMesh::SetVertexCount int  vt_count  )  [inline]
 

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.

void csPolygonMesh::SetVertices csVector3 vt,
int  vt_count,
bool  delete_vt
[inline]
 

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.

void csPolygonMesh::ShapeChanged  )  [inline]
 

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:
Generated for Crystal Space by doxygen 1.4.4