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

OpenCAL::TriangleMesh Class Reference

#include <TriangleMesh.h>

List of all members.

Public Member Functions

 TriangleMesh (bool rigid=false)
 TriangleMesh (const string &filename, bool rigid=false)
const Texture * getTexture () const
Texture * getTexture ()
bool hasTexture () const
bool isRigid () const
void setTexture (Texture *texture)
unsigned int numVertices () const
const VertexgetVertex (unsigned int i) const
VertexgetVertex (unsigned int i)
void reserveVertices (unsigned int n)
VertexaddVertex (const Vertex &vertex)
unsigned int numTriangles () const
const TrianglegetTriangle (unsigned int i) const
TrianglegetTriangle (unsigned int i)
void reserveTriangles (unsigned int n)
TriangleaddTriangle (const Triangle &triangle)
unsigned int numMaterials () const
const MaterialgetMaterial (unsigned int i) const
MaterialgetMaterial (unsigned int i)
void reserveMaterials (unsigned int n)
MaterialaddMaterial ()
MaterialaddMaterial (const Material &material)
bool getDrawNormals () const
void setDrawNormals (bool enabled=true)
void enableDrawNormals ()
void disableDrawNormals ()
void toggleDrawNormals ()
void clear ()
void invalidateTriangleNormals ()
void calculateVertexNormals ()
void loadFromFile (const string &filename)

Protected Types

typedef vector< Vertex * > VertexList
typedef vector< Triangle * > TriangleList
typedef vector< Material * > MaterialList

Protected Attributes

VertexList m_vertices
TriangleList m_triangles
MaterialList m_materials
Texture * m_texture
bool m_rigid
bool m_drawNormals


Detailed Description

Description

Definition at line 35 of file TriangleMesh.h.


The documentation for this class was generated from the following files:
Generated on Sun Aug 15 19:19:28 2004 for OpenCAL: Open Computer Animation Library by doxygen 1.3.8