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

polymesh.h File Reference

Polygon mesh interfaces. More...

#include "csutil/scf_interface.h"

Go to the source code of this file.

Classes

struct  csMeshedPolygon
 A polygon. More...
struct  iPolygonMesh
 This interface reprents a mesh of polygons. More...

Flags for iPolygonMesh

enum  {
  CS_POLYMESH_CLOSED = 1, CS_POLYMESH_NOTCLOSED = 2, CS_POLYMESH_CONVEX = 4, CS_POLYMESH_NOTCONVEX = 8,
  CS_POLYMESH_DEFORMABLE = 16, CS_POLYMESH_TRIANGLEMESH = 32
}


Detailed Description

Polygon mesh interfaces.

Definition in file polymesh.h.


Enumeration Type Documentation

anonymous enum
 

Enumerator:
CS_POLYMESH_CLOSED  The object is closed, if set.

With closed we mean that if you run a beam of light through the object (through any point outside the mesh to another point outside) it will always hit an even amount of faces (one going in, and one going out). If you don't set CLOSED or NOTCLOSED then the state is not known and the engine may test it if it wants.

CS_POLYMESH_NOTCLOSED  The object is not closed, if set.

This is the opposite of CS_POLYMESH_CLOSED. Use this flag if you are absolutely certain that the object is not closed. The engine will not attempt to test if the object is really closed or not. If you don't set CLOSED or NOTCLOSED then the state is not known and the engine may test it if it wants.

CS_POLYMESH_CONVEX  The object is convex, if set.

With convex we mean that if you run a beam of light through the object (through any point outside the mesh to another point outside) it will always hit exactly two faces (one going in, and one going out). If you don't set CONVEX or NOTCONVEX then the state is not known and the engine may test it if it wants.

CS_POLYMESH_NOTCONVEX  The object is not convex, if set.

This is the opposite of CS_POLYMESH_CONVEX. Use this flag if you are absolutely certain that the object is not convex. The engine will not attempt to test if the object is really convex or not. If you don't set CONVEX or NOTCONVEX then the state is not known and the engine may test it if it wants.

CS_POLYMESH_DEFORMABLE  Set this flag if the polygon mesh is deformable.
CS_POLYMESH_TRIANGLEMESH  Set this flag if the native or desired format of the polygon mesh is a triangle mesh.

If this flag is set it means that GetTriangles() is very cheap. The presence of this flag does not mean that GetPolygons() will not work.

Definition at line 37 of file polymesh.h.


Generated for Crystal Space by doxygen 1.4.4