Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

gmMesh Class Reference

#include <gmMesh.h>

Inheritance diagram for gmMesh:

Inheritance graph
[legend]
Collaboration diagram for gmMesh:

Collaboration graph
[legend]
List of all members.

Public Member Functions

overloaded for gmVertex and gmEdge
gmVertexaddVertex ()
 create a new vertex in the mesh

gmEdgeaddHalfEdge (gmVertex *pV1, gmVertex *pV2)
void addVertex (gmVertex *vert)
void addHalfEdge (gmEdge *edge)
gmVertexgetFirstActiveVertex ()
 gets the first active vertex

gmVertexgetFirstActiveVertex (const U32 partition)
 gets the first active vertex in a partition

gmVertexcollapseEdge (NhalfEdge *pCollapseEdge)
 edge collapse for simplification and partitioning

gmEdgeuncollapseVertex (NhalfEdgeVertex *pVertex)
 edge uncollapse for simplification and partitiong

void findMatching (std::vector< gmEdge * > *pMatchingArray)
void getActiveEdgeList (std::vector< gmEdge * > *pEdgeArray)
void getActiveVertexList (std::vector< gmVertex * > *pVertexArray)

Member Function Documentation

void gmMesh::addHalfEdge gmEdge edge  )  [inline]
 

Definition at line 101 of file gmMesh.h.

References NhalfEdgeMesh::addHalfEdge(), and edge.

gmEdge* gmMesh::addHalfEdge gmVertex pV1,
gmVertex pV2
[inline]
 

Definition at line 99 of file gmMesh.h.

References NhalfEdgeMesh::addHalfEdge().

Referenced by ModButterflySubdivision::subdivide().

void gmMesh::addVertex gmVertex vert  )  [inline]
 

Definition at line 100 of file gmMesh.h.

References NhalfEdgeMesh::addVertex().

gmVertex* gmMesh::addVertex  )  [inline]
 

create a new vertex in the mesh

Returns:
pointer to the newly created vertex in the mesh

Reimplemented from NhalfEdgeMesh.

Reimplemented in ParticleMesh.

Definition at line 98 of file gmMesh.h.

References NhalfEdgeMesh::addVertex().

Referenced by CatmullClarkSubdivision::buildVertex(), CatmullClarkSubdivision::divideEdge(), CatmullClarkSubdivision::divideFace(), and ModButterflySubdivision::subdivide().

gmVertex* gmMesh::collapseEdge NhalfEdge pCollapseEdge  )  [inline]
 

edge collapse for simplification and partitioning

Creates a new vertex and deactivates old vertices. Also creates a new edges, and deactivates old ones. Allows for later uncollapse.

Parameters:
pCollapseEdge The "active" edge to be collapsed attaching to "active" vertices
See also:
uncollapseVertex()
Returns:
newly created vertex

Reimplemented from NhalfEdgeMesh.

Reimplemented in ParticleMesh.

Definition at line 104 of file gmMesh.h.

References NhalfEdgeMesh::collapseEdge().

void gmMesh::findMatching std::vector< gmEdge * > *  pMatchingArray  )  [inline]
 

Definition at line 106 of file gmMesh.h.

References NhalfEdgeMesh::findMatching().

void gmMesh::getActiveEdgeList std::vector< gmEdge * > *  pEdgeArray  )  [inline]
 

Definition at line 115 of file gmMesh.h.

References NhalfEdgeMesh::getActiveEdgeList().

Referenced by GLMeshRenderer::renderActiveEdges(), and ModButterflySubdivision::subdivide().

void gmMesh::getActiveVertexList std::vector< gmVertex * > *  pVertexArray  )  [inline]
 

Definition at line 124 of file gmMesh.h.

References NhalfEdgeMesh::getActiveVertexList().

gmVertex* gmMesh::getFirstActiveVertex const U32  partition  )  [inline]
 

gets the first active vertex in a partition

Parameters:
partition the partitions for the first active vertex.
Returns:
active vertex

Reimplemented from NhalfEdgeMesh.

Reimplemented in ParticleMesh.

Definition at line 103 of file gmMesh.h.

References NhalfEdgeMesh::getFirstActiveVertex(), and U32.

gmVertex* gmMesh::getFirstActiveVertex  )  [inline]
 

gets the first active vertex

Returns:
active vertex

Reimplemented from NhalfEdgeMesh.

Reimplemented in ParticleMesh.

Definition at line 102 of file gmMesh.h.

References NhalfEdgeMesh::getFirstActiveVertex().

gmEdge* gmMesh::uncollapseVertex NhalfEdgeVertex pVertex  )  [inline]
 

edge uncollapse for simplification and partitiong

Parameters:
pVertex a pointer to an active composite vertex;
See also:
collapseEdge()
Returns:
unCollapsedEdge newly created vertex

Reimplemented from NhalfEdgeMesh.

Reimplemented in ParticleMesh.

Definition at line 105 of file gmMesh.h.

References NhalfEdgeMesh::uncollapseVertex().


The documentation for this class was generated from the following file:
Generated on Mon Jun 28 15:02:18 2004 for Advanced Surface Library by doxygen 1.3.4