CrystalSpace

Public API Reference

csTriangleMeshPolyMesh Class Reference
[Geometry utilities]

This triangle mesh is a temporary class that takes a polygon mesh and wraps it so that it becomes a triangle mesh. More...

#include <csgeom/trimesh.h>

Inheritance diagram for csTriangleMeshPolyMesh:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 csTriangleMeshPolyMesh (iPolygonMesh *polymesh)
virtual uint32 GetChangeNumber () const
 When this number changes you know the triangle mesh has changed (deformation has occured) since the last time you got another number from this function.
virtual csFlagsGetFlags ()
 Get flags for this triangle mesh.
virtual size_t GetTriangleCount ()
 Get the number of triangles for this mesh.
virtual csTriangleGetTriangles ()
 Get the triangle table for this mesh.
virtual size_t GetVertexCount ()
 Get the number of vertices for this mesh.
virtual csVector3GetVertices ()
 Get the pointer to the array of vertices.
virtual void Lock ()
 Lock the triangle mesh.
virtual void Unlock ()
 Unlock the triangle mesh.
virtual ~csTriangleMeshPolyMesh ()


Detailed Description

This triangle mesh is a temporary class that takes a polygon mesh and wraps it so that it becomes a triangle mesh.

You should not have to use this mesh in production code!

Deprecated:
This class should not be used!

Definition at line 281 of file trimesh.h.


Member Function Documentation

virtual uint32 csTriangleMeshPolyMesh::GetChangeNumber (  )  const [inline, virtual]

When this number changes you know the triangle mesh has changed (deformation has occured) since the last time you got another number from this function.

Implements iTriangleMesh.

Definition at line 323 of file trimesh.h.

virtual csFlags& csTriangleMeshPolyMesh::GetFlags (  )  [inline, virtual]

Get flags for this triangle mesh.

This is zero or a combination of the following flags:

Note that if neither CS_TRIMESH_CLOSED nor CS_TRIMESH_NOTCLOSED are set then the closed state is not known. Setting both is illegal. Note that if neither CS_TRIMESH_CONVEX nor CS_TRIMESH_NOTCONVEX are set then the convex state is not known. Setting both is illegal.

Implements iTriangleMesh.

Definition at line 316 of file trimesh.h.

virtual size_t csTriangleMeshPolyMesh::GetTriangleCount (  )  [inline, virtual]

Get the number of triangles for this mesh.

Implements iTriangleMesh.

Definition at line 309 of file trimesh.h.

virtual csTriangle* csTriangleMeshPolyMesh::GetTriangles (  )  [inline, virtual]

Get the triangle table for this mesh.

Implements iTriangleMesh.

Definition at line 313 of file trimesh.h.

virtual size_t csTriangleMeshPolyMesh::GetVertexCount (  )  [inline, virtual]

Get the number of vertices for this mesh.

Implements iTriangleMesh.

Definition at line 301 of file trimesh.h.

References iPolygonMesh::GetVertexCount().

virtual csVector3* csTriangleMeshPolyMesh::GetVertices (  )  [inline, virtual]

Get the pointer to the array of vertices.

Implements iTriangleMesh.

Definition at line 305 of file trimesh.h.

virtual void csTriangleMeshPolyMesh::Lock (  )  [inline, virtual]

Lock the triangle mesh.

This prevents the triangle data from being cleaned up.

Implements iTriangleMesh.

Definition at line 314 of file trimesh.h.

virtual void csTriangleMeshPolyMesh::Unlock (  )  [inline, virtual]

Unlock the triangle mesh.

This allows clean up again.

Implements iTriangleMesh.

Definition at line 315 of file trimesh.h.


The documentation for this class was generated from the following file:
Generated for Crystal Space 1.2.1 by doxygen 1.5.3