#include <TriangleMesh.h>
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 Vertex * | getVertex (unsigned int i) const |
Vertex * | getVertex (unsigned int i) |
void | reserveVertices (unsigned int n) |
Vertex * | addVertex (const Vertex &vertex) |
unsigned int | numTriangles () const |
const Triangle * | getTriangle (unsigned int i) const |
Triangle * | getTriangle (unsigned int i) |
void | reserveTriangles (unsigned int n) |
Triangle * | addTriangle (const Triangle &triangle) |
unsigned int | numMaterials () const |
const Material * | getMaterial (unsigned int i) const |
Material * | getMaterial (unsigned int i) |
void | reserveMaterials (unsigned int n) |
Material * | addMaterial () |
Material * | addMaterial (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 |
Definition at line 35 of file TriangleMesh.h.