OGRE 14.3
Object-Oriented Graphics Rendering Engine
|
#include <OgreLodCollapseCost.h>
Public Member Functions | |
LodCollapseCost () | |
virtual | ~LodCollapseCost () |
virtual Real | computeEdgeCollapseCost (LodData *data, LodData::Vertex *src, LodData::Edge *dstEdge)=0 |
Returns the collapse cost of the given edge. | |
virtual void | computeVertexCollapseCost (LodData *data, LodData::Vertex *vertex, Real &collapseCost, LodData::Vertex *&collapseTo) |
Called by initVertexCollapseCost and updateVertexCollapseCost, when the vertex minimal cost needs to be updated. | |
virtual void | initCollapseCosts (LodData *data) |
This is called after the LodInputProvider has initialized LodData. | |
virtual void | initVertexCollapseCost (LodData *data, LodData::Vertex *vertex) |
Called from initCollapseCosts for every edge. | |
void | setPreventBreakingLines (bool prevent) |
Set true to prevent collapsing edges that would result in the destruction of a line. | |
void | setPreventPunchingHoles (bool prevent) |
Set true to prevent collapsing edges that would result in the destruction of a triangle. | |
virtual void | updateVertexCollapseCost (LodData *data, LodData::Vertex *vertex) |
Called when edge cost gets invalid. | |
|
inline |
|
inlinevirtual |
This is called after the LodInputProvider has initialized LodData.
Reimplemented in Ogre::LodCollapseCostOutside, Ogre::LodCollapseCostProfiler, and Ogre::LodCollapseCostQuadric.
|
virtual |
Called from initCollapseCosts for every edge.
|
virtual |
Called when edge cost gets invalid.
Reimplemented in Ogre::LodCollapseCostQuadric.
|
virtual |
Called by initVertexCollapseCost and updateVertexCollapseCost, when the vertex minimal cost needs to be updated.
Reimplemented in Ogre::LodCollapseCostProfiler.
|
pure virtual |
Returns the collapse cost of the given edge.
Implemented in Ogre::LodCollapseCostCurvature, Ogre::LodCollapseCostOutside, Ogre::LodCollapseCostProfiler, and Ogre::LodCollapseCostQuadric.
Set true to prevent collapsing edges that would result in the destruction of a triangle.
Set true to prevent collapsing edges that would result in the destruction of a line.