Google

Main Page   Class Hierarchy   Compound List   File List   Compound Members  

iPolygonMesh Struct Reference

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.

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

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

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

virtual void Cleanup ()=0
 Cleanup: this is called by the collider system when it is ready extracting the data from the iPolygonMesh. 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.


Member Function Documentation

void iPolygonMesh::Cleanup ( ) [pure virtual]
 

Cleanup: this is called by the collider system when it is ready extracting the data from the iPolygonMesh.

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


The documentation for this struct was generated from the following file:
Generated for Crystal Space by doxygen 1.2.5 written by Dimitri van Heesch, ©1997-2000