QEM::ProgMesh Class Reference

A progressive mesh class based on the Quadric Error Metric, by Michael Garland. More...

#include <QEM_ProgMesh.h>

Collaboration diagram for QEM::ProgMesh:

Collaboration graph
[legend]
List of all members.

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.


Detailed Description

A progressive mesh class based on the Quadric Error Metric, by Michael Garland.

Definition at line 47 of file QEM_ProgMesh.h.


The documentation for this class was generated from the following files:
Generated on Tue May 21 03:35:16 2002 for Archimedes by doxygen1.2.15