OGRE 14.3
Object-Oriented Graphics Rendering Engine
Loading...
Searching...
No Matches
Ogre::LodCollapseCostQuadric Class Reference

#include <OgreLodCollapseCostQuadric.h>

+ Inheritance diagram for Ogre::LodCollapseCostQuadric:

Public Member Functions

Real computeEdgeCollapseCost (LodData *data, LodData::Vertex *src, LodData::Edge *dstEdge) override
 Returns the collapse cost of the given edge.
 
void initCollapseCosts (LodData *data) override
 This is called after the LodInputProvider has initialized LodData.
 
void updateVertexCollapseCost (LodData *data, LodData::Vertex *vertex) override
 Called when edge cost gets invalid.
 
- Public Member Functions inherited from Ogre::LodCollapseCost
 LodCollapseCost ()
 
virtual ~LodCollapseCost ()
 
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 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.
 

Member Function Documentation

◆ initCollapseCosts()

void Ogre::LodCollapseCostQuadric::initCollapseCosts ( LodData data)
overridevirtual

This is called after the LodInputProvider has initialized LodData.

Reimplemented from Ogre::LodCollapseCost.

◆ updateVertexCollapseCost()

void Ogre::LodCollapseCostQuadric::updateVertexCollapseCost ( LodData data,
LodData::Vertex vertex 
)
overridevirtual

Called when edge cost gets invalid.

Reimplemented from Ogre::LodCollapseCost.

◆ computeEdgeCollapseCost()

Real Ogre::LodCollapseCostQuadric::computeEdgeCollapseCost ( LodData data,
LodData::Vertex src,
LodData::Edge dstEdge 
)
overridevirtual

Returns the collapse cost of the given edge.

Implements Ogre::LodCollapseCost.


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