Main Page   Class Hierarchy   Compound List   File List   Compound Members  

Model Class Reference

Model Class. Holds information about a single model in a VRML Scene. More...

#include <Model.h>

List of all members.

Public Methods

 Model (std::vector< Vertex *> *v, std::vector< GLint > *vi, std::vector< Color *> *c, bool order)
 Constructor taking information for all vertices. More...

const GLuint numVertices ()
 Returns the number of vertices.

const GLuint numTriangles ()
 Returns the number of triangles.

std::string toString ()
 Returns a string showing all information.

VS * getVertexList ()
 Returns a set of the verticies.

std::set< Triangle *> * getTriangleList ()
void addTriangle (Triangle *t)
void removeTriangle (Triangle *t)
void addVertex (Vertex *v)
void removeVertex (Vertex *v)
bool isClockwise ()
GLint getNumCorners ()
GLvoid setNumCorners (GLint i)


Detailed Description

Model Class. Holds information about a single model in a VRML Scene.


Constructor & Destructor Documentation

Model::Model std::vector< Vertex *> *    v,
std::vector< GLint > *    vi,
std::vector< Color *> *    c,
bool    order
 

Constructor taking information for all vertices.

Parameters:
v  List of vertices.
vi  List of vertex indices.
c  List of colors for each vertex.


The documentation for this class was generated from the following files:
Generated on Fri Dec 21 00:16:49 2001 for Mesh Decimation by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001