#include <Mesh.h>
Public Types | |
typedef std::list< Vertex * >::iterator | vertexIter |
typedef std::list< Face * >::iterator | faceIter |
typedef std::list< UVCoords * >::iterator | uvIter |
Public Member Functions | |
Mesh (void) | |
constructor | |
virtual | ~Mesh (void) |
destructor | |
faceIter | addFace (Vertex *v1, Vertex *v2, Vertex *v3) |
add a Face with pointers to 3 vertices (triangle) to the faceList | |
faceIter | addFace (Vertex *v1, Vertex *v2, Vertex *v3, Vertex *v4) |
add a Face with pointers to 4 vertices (quad) to the faceList | |
faceIter | addFace (std::list< Vertex * > li) |
add a Face with a list of pointers to vertices (poly) to the faceList | |
vertexIter | addVertex (float x_new, float y_new, float z_new) |
add a Vertex with the float coordinates to the vertexlist | |
uvIter | addUVCoord (float x_new, float y_new) |
bool | switchTextureOnOff () |
faceIter | getFirstFace () |
get the Iterator to the first face in the faceList | |
vertexIter | getFirstVertex () |
get the Iterator to the first vertex in the vertexList | |
uvIter | getFirstUV () |
void | deleteFace (faceIter) |
delete the face of fIter from the faceList | |
void | deleteVertex (vertexIter) |
delete the vertex of vIter from the vertexList | |
void | outputOpenGL () |
show the mesh with openGL commands | |
void | outputOpenGLPoints () |
show the vertices of the mesh with openGL commands | |
Protected Attributes | |
std::list< Vertex * > | vertexList |
std::list< Face * > | faceList |
std::list< UVCoords * > | uvList |
bool | texture |
Store the information for vertices and faces that are needed to display the mesh correctly. These are stored in vertexList and faceList. Also functions for displaying the mesh in openGL are written.
|
|
|
|
|
|
|
constructor
|
|
destructor
|
|
add a Face with a list of pointers to vertices (poly) to the faceList
|
|
add a Face with pointers to 4 vertices (quad) to the faceList
|
|
add a Face with pointers to 3 vertices (triangle) to the faceList
|
|
|
|
add a Vertex with the float coordinates to the vertexlist
|
|
delete the face of fIter from the faceList
|
|
delete the vertex of vIter from the vertexList
|
|
get the Iterator to the first face in the faceList
|
|
|
|
get the Iterator to the first vertex in the vertexList
|
|
show the mesh with openGL commands
|
|
show the vertices of the mesh with openGL commands
|
|
|
|
|
|
|
|
|
|
|