CrystalSpace

Public API Reference

Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

iPolygonMesh Struct Reference
[Geometry utilities]

This interface reprents a mesh of polygons. More...

#include <polymesh.h>

Inheritance diagram for iPolygonMesh:

iBase List of all members.

Public Methods

virtual int GetVertexCount ()=0
 Get the number of vertices for this mesh. More...

virtual csVector3GetVertices ()=0
 Get the pointer to the array of vertices. More...

virtual int GetPolygonCount ()=0
 Get the number of polygons for this mesh. More...

virtual csMeshedPolygonGetPolygons ()=0
 Get the pointer to the array of polygons. More...

virtual void Cleanup ()=0
 Cleanup: this is called by the polygon mesh user when it is ready extracting the data from the iPolygonMesh. More...

virtual bool IsDeformable () const=0
 Is this a deformable mesh? If yes you can use GetChangeNumber() to detect if a change actually occured. More...

virtual uint32 GetChangeNumber () const=0
 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...


Detailed Description

This interface reprents a mesh of polygons.

It is useful to communicate geometry information outside of the engine. One place where this will be useful is for communicating geometry information to the collision detection plugin.
All Crystal Space mesh objects (things, sprites, ...) should implement and/or embed an implementation of this interface.

A polygon mesh has the concept of a vertex buffer and an array of polygons.

Definition at line 54 of file polymesh.h.


Member Function Documentation

virtual void iPolygonMesh::Cleanup   [pure virtual]
 

Cleanup: this is called by the polygon mesh user when it is ready extracting the data from the iPolygonMesh.

This gives the polygon mesh a chance to clean up some stuff.

virtual uint32 iPolygonMesh::GetChangeNumber   const [pure virtual]
 

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.

virtual int iPolygonMesh::GetPolygonCount   [pure virtual]
 

Get the number of polygons for this mesh.

virtual csMeshedPolygon* iPolygonMesh::GetPolygons   [pure virtual]
 

Get the pointer to the array of polygons.

virtual int iPolygonMesh::GetVertexCount   [pure virtual]
 

Get the number of vertices for this mesh.

virtual csVector3* iPolygonMesh::GetVertices   [pure virtual]
 

Get the pointer to the array of vertices.

virtual bool iPolygonMesh::IsDeformable   const [pure virtual]
 

Is this a deformable mesh? If yes you can use GetChangeNumber() to detect if a change actually occured.


The documentation for this struct was generated from the following file:
Generated for Crystal Space by doxygen 1.2.14