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

Ogre::ProgressiveMesh::PMVertex Class Reference

A vertex in the progressive mesh, holds info like collapse cost etc. More...

#include <OgreProgressiveMesh.h>

List of all members.

Public Types

typedef std::set< PMVertex * > NeighborList
typedef std::set< PMVertex * > DuplicateList
typedef std::set< PMTriangle * > FaceList

Public Methods

 PMVertex ()
void setDetails (const Vector3 &v, int index)
void removeIfNonNeighbor (PMVertex *n)
bool isBorder (void)
bool isManifoldEdgeWith (PMVertex *v)
 true if this vertex is on the edge of an open geometry patch. More...

void notifyRemoved (void)

Public Attributes

Vector3 position
ushort index
NeighborList neighbor
FaceList face
Real collapseCost
PMVertex * collapseTo
bool removed
bool toBeRemoved
bool seam


Detailed Description

A vertex in the progressive mesh, holds info like collapse cost etc.

This vertex can actually represent several vertices in the final model, because vertices along texture seams etc will have been duplicated. In order to properly evaluate the surface properties, a single common vertex is used for these duplicates, and the faces hold the detail of the duplicated vertices.


Member Typedef Documentation

typedef std::set<PMVertex *> Ogre::ProgressiveMesh::PMVertex::DuplicateList
 

typedef std::set<PMTriangle *> Ogre::ProgressiveMesh::PMVertex::FaceList
 

typedef std::set<PMVertex *> Ogre::ProgressiveMesh::PMVertex::NeighborList
 


Constructor & Destructor Documentation

Ogre::ProgressiveMesh::PMVertex::PMVertex  
 


Member Function Documentation

bool Ogre::ProgressiveMesh::PMVertex::isBorder void   
 

bool Ogre::ProgressiveMesh::PMVertex::isManifoldEdgeWith PMVertex *    v
 

true if this vertex is on the edge of an open geometry patch.

void Ogre::ProgressiveMesh::PMVertex::notifyRemoved void   
 

void Ogre::ProgressiveMesh::PMVertex::removeIfNonNeighbor PMVertex *    n
 

void Ogre::ProgressiveMesh::PMVertex::setDetails const Vector3   v,
int    index
 


Member Data Documentation

Real Ogre::ProgressiveMesh::PMVertex::collapseCost
 

PMVertex* Ogre::ProgressiveMesh::PMVertex::collapseTo
 

FaceList Ogre::ProgressiveMesh::PMVertex::face
 

ushort Ogre::ProgressiveMesh::PMVertex::index
 

NeighborList Ogre::ProgressiveMesh::PMVertex::neighbor
 

Vector3 Ogre::ProgressiveMesh::PMVertex::position
 

bool Ogre::ProgressiveMesh::PMVertex::removed
 

bool Ogre::ProgressiveMesh::PMVertex::seam
 

bool Ogre::ProgressiveMesh::PMVertex::toBeRemoved
 

Copyright © 2002 by The OGRE Team