OGRE 2.1
Object-Oriented Graphics Rendering Engine
Loading...
Searching...
No Matches
Ogre::Volume::OctreeNodeSplitPolicy Class Reference

The class deciding on whether to split an octree node or not when building the octree. More...

#include <OgreVolumeOctreeNodeSplitPolicy.h>

Public Member Functions

 OctreeNodeSplitPolicy (const Source *src, const Real maxCellSize)
 Constructur.
 
bool doSplit (OctreeNode *node, const Real geometricError) const
 Decider for the splitting.
 

Detailed Description

The class deciding on whether to split an octree node or not when building the octree.

Splitting like Zhang in http://www.andrew.cmu.edu/user/jessicaz/publication/meshing/.

Constructor & Destructor Documentation

◆ OctreeNodeSplitPolicy()

Ogre::Volume::OctreeNodeSplitPolicy::OctreeNodeSplitPolicy ( const Source src,
const Real  maxCellSize 
)

Constructur.

Protected to have the initialization.

Parameters
srcThe volume source to decide something.
maxCellSizeThe maximum size when the splitting will stop anyway.

Member Function Documentation

◆ doSplit()

bool Ogre::Volume::OctreeNodeSplitPolicy::doSplit ( OctreeNode node,
const Real  geometricError 
) const

Decider for the splitting.

Parameters
nodeThe split candidate.
geometricErrorThe accepted geometric error.
Returns
true if the node should be split.

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