Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Mesh Class Reference

A Triangle mesh. More...

#include <Mesh.h>

Inherits Object.

Inheritance diagram for Mesh:

Inheritance graph
[legend]
Collaboration diagram for Mesh:

Collaboration graph
[legend]
List of all members.

Public Types

typedef vector< Vertex3VertexList
typedef vector< Vertex3NormalList
typedef vector< uint16 > FaceList
typedef vector< uint32 > FaceIndexList

Public Methods

 Mesh ()
 ~Mesh ()
int nFaces ()
int nVertices ()
int nStrips ()
VertexList & vertexArray ()
FaceList & faceArray ()
NormalList & normalArray ()
RefMaterial & getMaterial ()
void setMaterial (const RefMaterial &m)
void setMaterial (Material *m)
bool hasTriStrips ()
void generateVertexNormals (bool gen)
void clear ()
void invertFace (unsigned int i)
void startStrips ()
void endStrip ()
void deStripe ()
void calculate ()
void calculateFaces ()
void transform (Matrix4 &M)
void renderSimple (RenderContext &rc, bool pushTriNames)
void render (RenderContext &rc, RenderContext::Visibility visibility=RenderContext::PartlyVisible)
float collide (const CollisionHull &hull, Vertex3 &nearestIntersection)
real intersect (const Ray &ray) const
void read (WDFFile &f)
void write (WDFFile &f)
void readChunk (WDFFile::Chunk &chunk, WDFFile &f)

Detailed Description

A Triangle mesh.


Member Function Documentation

real Mesh::intersect const Ray   ray const [virtual]
 

Todo:
Support for Tri-strips

Reimplemented from Object.


The documentation for this class was generated from the following files:
This documentation was generated using doxygen. If you have any comments or additions please mail me.