|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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. A triangle mesh is also supported. A mesh object typically only implements either a polygon mesh or a triangle mesh. In that case requesting the other type of mesh will automatically generate the new format. iPolygonMesh can use csPolygonMeshTools::Triangulate() and csPolygonMeshTools::Polygonize() to help with that.
Method Summary | |
int |
getChangeNumber()
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. |
csFlags |
getFlags()
Get flags for this polygon mesh. |
int |
getPolygonCount()
Get the number of polygons for this mesh. |
csMeshedPolygonArray |
getPolygons()
Get the pointer to the array of polygons. |
int |
getTriangleCount()
Get the number of triangles for this mesh. |
csTriangleArray |
getTriangles()
Get the triangle table for this mesh. |
int |
getVertexCount()
Get the number of vertices for this mesh. |
csVector3Array |
getVertices()
Get the pointer to the array of vertices. |
void |
lock()
Lock the polygon mesh. |
void |
unlock()
Unlock the polygon mesh. |
Methods inherited from interface crystalspace.jbind.interfaces.iutil.scf.iBase |
decRef, getName, getRefCount, getVersion, incRef, queryInterface, queryInterfaceSafe |
Methods inherited from interface crystalspace.jbind.interfaces.iPointer |
changePointer, getPointer, isMemoryOwner, setMemoryOwner |
Method Detail |
public int getChangeNumber()
public csFlags getFlags()
public int getPolygonCount()
public csMeshedPolygonArray getPolygons()
public int getTriangleCount()
public csTriangleArray getTriangles()
public int getVertexCount()
public csVector3Array getVertices()
public void lock()
public void unlock()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |