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

Ogre::ProgressiveMesh::PMTriangle Class Reference

A triangle in the progressive mesh, holds extra info like face normal. More...

#include <OgreProgressiveMesh.h>

List of all members.

Public Methods

 PMTriangle ()
void setDetails (size_t index, PMFaceVertex *v0, PMFaceVertex *v1, PMFaceVertex *v2)
void computeNormal (void)
void replaceVertex (PMFaceVertex *vold, PMFaceVertex *vnew)
bool hasCommonVertex (PMVertex *v) const
bool hasFaceVertex (PMFaceVertex *v) const
PMFaceVertexgetFaceVertexFromCommon (PMVertex *commonVert)
void notifyRemoved (void)

Public Attributes

PMFaceVertexvertex [3]
Vector3 normal
bool removed
size_t index


Detailed Description

A triangle in the progressive mesh, holds extra info like face normal.

Definition at line 132 of file OgreProgressiveMesh.h.


Constructor & Destructor Documentation

Ogre::ProgressiveMesh::PMTriangle::PMTriangle  
 

Definition at line 713 of file OgreProgressiveMesh.cpp.


Member Function Documentation

void Ogre::ProgressiveMesh::PMTriangle::computeNormal void   
 

Definition at line 784 of file OgreProgressiveMesh.cpp.

References Ogre::ProgressiveMesh::PMFaceVertex::commonVertex, Ogre::Vector3::crossProduct(), normal, Ogre::Vector3::normalise(), Ogre::ProgressiveMesh::PMVertex::position, and vertex.

Referenced by replaceVertex(), and setDetails().

ProgressiveMesh::PMFaceVertex * Ogre::ProgressiveMesh::PMTriangle::getFaceVertexFromCommon PMVertex   commonVert
 

Definition at line 774 of file OgreProgressiveMesh.cpp.

References Ogre::ProgressiveMesh::PMFaceVertex::commonVertex, and vertex.

bool Ogre::ProgressiveMesh::PMTriangle::hasCommonVertex PMVertex   v const
 

Definition at line 759 of file OgreProgressiveMesh.cpp.

References Ogre::ProgressiveMesh::PMFaceVertex::commonVertex, and vertex.

bool Ogre::ProgressiveMesh::PMTriangle::hasFaceVertex PMFaceVertex   v const
 

Definition at line 766 of file OgreProgressiveMesh.cpp.

References vertex.

void Ogre::ProgressiveMesh::PMTriangle::notifyRemoved void   
 

Definition at line 740 of file OgreProgressiveMesh.cpp.

References Ogre::ProgressiveMesh::PMFaceVertex::commonVertex, Ogre::ProgressiveMesh::PMVertex::face, removed, Ogre::ProgressiveMesh::PMVertex::removeIfNonNeighbor(), and vertex.

void Ogre::ProgressiveMesh::PMTriangle::replaceVertex PMFaceVertex   vold,
PMFaceVertex   vnew
 

Definition at line 797 of file OgreProgressiveMesh.cpp.

References Ogre::ProgressiveMesh::PMFaceVertex::commonVertex, computeNormal(), Ogre::ProgressiveMesh::PMVertex::face, Ogre::ProgressiveMesh::PMVertex::index, Ogre::ProgressiveMesh::PMVertex::neighbor, Ogre::ProgressiveMesh::PMVertex::removeIfNonNeighbor(), and vertex.

void Ogre::ProgressiveMesh::PMTriangle::setDetails size_t    index,
PMFaceVertex   v0,
PMFaceVertex   v1,
PMFaceVertex   v2
 

Definition at line 717 of file OgreProgressiveMesh.cpp.

References Ogre::ProgressiveMesh::PMFaceVertex::commonVertex, computeNormal(), Ogre::ProgressiveMesh::PMVertex::face, index, Ogre::ProgressiveMesh::PMVertex::neighbor, and vertex.


Member Data Documentation

size_t Ogre::ProgressiveMesh::PMTriangle::index
 

Definition at line 146 of file OgreProgressiveMesh.h.

Referenced by setDetails().

Vector3 Ogre::ProgressiveMesh::PMTriangle::normal
 

Definition at line 144 of file OgreProgressiveMesh.h.

Referenced by computeNormal().

bool Ogre::ProgressiveMesh::PMTriangle::removed
 

Definition at line 145 of file OgreProgressiveMesh.h.

Referenced by notifyRemoved().

PMFaceVertex* Ogre::ProgressiveMesh::PMTriangle::vertex[3]
 

Definition at line 143 of file OgreProgressiveMesh.h.

Referenced by computeNormal(), getFaceVertexFromCommon(), hasCommonVertex(), hasFaceVertex(), notifyRemoved(), replaceVertex(), and setDetails().


The documentation for this class was generated from the following files:

Copyright © 2002-2003 by The OGRE Team
Last modified Sun Nov 28 19:51:27 2004