|
#include <QEM_ProgMesh.h>
Collaboration diagram for QEM::ProgMesh:
Public Methods | |
int | getNumVertices () const |
Get the total number of vertices in the current mesh. | |
int | getNumFacesTotal () const |
Get the original total number of faces (before any collapsing has taken place). | |
int | getNumFacesVisible () const |
Get the current number of faces. | |
int | getNumEdges () const |
Get the current number of edges in the mesh. | |
void | addFace (int v1, int v2, int v3) |
Add a single face to the mesh. | |
int | addVertex (mfloat x, mfloat y, mfloat z) |
Add a vertex to the mesh. | |
int | addVertexWithColor (mfloat x, mfloat y, mfloat z, const RgbByte &color) |
Add a colored vertex to the mesh. | |
void | recalculateCosts () |
void | doCollapse (int finalPolygonCount) |
Collapse the mesh until the finalPolygonCount is met. | |
void | doOneCollapse () |
Collapse one edge in the mesh. | |
void | presize (int nTriangles, int nVertices) |
If we know we're going to add a certain number of triangles and vertices, this will speed things up. | |
void | clear () |
Clear away all elements in the mesh. | |
void | draw () const |
Draw the mesh using OpenGL. |
Definition at line 47 of file QEM_ProgMesh.h.