OGRE-Next
4.0.0unstable
Object-Oriented Graphics Rendering Engine
|
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. More... | |
bool | doSplit (OctreeNode *node, const Real geometricError) const |
Decider for the splitting. More... | |
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/.
Ogre::Volume::OctreeNodeSplitPolicy::OctreeNodeSplitPolicy | ( | const Source * | src, |
const Real | maxCellSize | ||
) |
Constructur.
Protected to have the initialization.
src | The volume source to decide something. |
maxCellSize | The maximum size when the splitting will stop anyway. |
bool Ogre::Volume::OctreeNodeSplitPolicy::doSplit | ( | OctreeNode * | node, |
const Real | geometricError | ||
) | const |
Decider for the splitting.
node | The split candidate. |
geometricError | The accepted geometric error. |