MeshLODVector Class Reference

#include <MeshLODVector.h>

Inheritance diagram for MeshLODVector:

Vector

List of all members.

Public Member Functions

 MeshLODVector (Vector &v, int _id)
virtual ~MeshLODVector ()
void removeIfNonNeighbor (MeshLODVector *n)
void addNeighbour (MeshLODVector *vector)
void removeNeighbor (MeshLODVector *vector)
void removeFace (MeshLODTri *face)
float computeEdgeCollapseCost (MeshLODVector *neigbour)
void computeEdgeCostAtVertex ()
void collapseVertex ()

Public Attributes

MeshLODVectorcollapse
int id
float objdist
std::list
< MeshLODVector * > 
neighbor
std::list< MeshLODTri * > face


Detailed Description

Definition at line 28 of file MeshLODVector.h.


Constructor & Destructor Documentation

MeshLODVector::MeshLODVector ( Vector v,
int  _id 
)

Definition at line 34 of file MeshLODVector.cpp.

MeshLODVector::~MeshLODVector (  )  [virtual]

Definition at line 40 of file MeshLODVector.cpp.


Member Function Documentation

void MeshLODVector::removeIfNonNeighbor ( MeshLODVector n  ) 

Definition at line 79 of file MeshLODVector.cpp.

References face, MeshLODTri::hasVertex(), and removeNeighbor().

Referenced by MeshLODTri::replaceVertex(), and MeshLODTri::~MeshLODTri().

void MeshLODVector::addNeighbour ( MeshLODVector vector  ) 

Definition at line 45 of file MeshLODVector.cpp.

References neighbor.

Referenced by MeshLODTri::MeshLODTri(), and MeshLODTri::replaceVertex().

void MeshLODVector::removeNeighbor ( MeshLODVector vector  ) 

Definition at line 65 of file MeshLODVector.cpp.

References neighbor.

Referenced by removeIfNonNeighbor().

void MeshLODVector::removeFace ( MeshLODTri face  ) 

Definition at line 93 of file MeshLODVector.cpp.

References face.

Referenced by MeshLODTri::replaceVertex(), and MeshLODTri::~MeshLODTri().

float MeshLODVector::computeEdgeCollapseCost ( MeshLODVector neigbour  ) 

Definition at line 107 of file MeshLODVector.cpp.

References face, Vector::Magnitude(), MAX, MIN, and sides.

Referenced by computeEdgeCostAtVertex().

void MeshLODVector::computeEdgeCostAtVertex (  ) 

Definition at line 163 of file MeshLODVector.cpp.

References collapse, computeEdgeCollapseCost(), neighbor, NULL, and objdist.

void MeshLODVector::collapseVertex (  ) 

Definition at line 197 of file MeshLODVector.cpp.

References collapse, face, MeshLODTri::hasVertex(), neighbor, and MeshLODTri::replaceVertex().

Referenced by MeshLOD::progressiveMesh().


Member Data Documentation

MeshLODVector* MeshLODVector::collapse

Definition at line 34 of file MeshLODVector.h.

Referenced by collapseVertex(), computeEdgeCostAtVertex(), and MeshLOD::progressiveMesh().

int MeshLODVector::id

Definition at line 36 of file MeshLODVector.h.

Referenced by MeshLOD::progressiveMesh().

float MeshLODVector::objdist

Definition at line 37 of file MeshLODVector.h.

Referenced by computeEdgeCostAtVertex(), and MeshLOD::minimumCostEdge().

std::list<MeshLODVector *> MeshLODVector::neighbor

Definition at line 39 of file MeshLODVector.h.

Referenced by addNeighbour(), collapseVertex(), computeEdgeCostAtVertex(), and removeNeighbor().

std::list<MeshLODTri *> MeshLODVector::face

Definition at line 40 of file MeshLODVector.h.

Referenced by collapseVertex(), computeEdgeCollapseCost(), MeshLODTri::MeshLODTri(), removeFace(), removeIfNonNeighbor(), and MeshLODTri::replaceVertex().


The documentation for this class was generated from the following files:
Generated on Mon Feb 16 15:15:04 2009 for Scorched3D by  doxygen 1.5.3