Go to the documentation of this file.
28 #ifndef __Ogre_Volume_OctreeNodeSplitPolicy_H__
29 #define __Ogre_Volume_OctreeNodeSplitPolicy_H__
84 Real oneMinXoneMinY = oneMinX * oneMinY;
85 Real xOneMinY = position.
x * oneMinY;
86 return oneMinZ * (f000 * oneMinXoneMinY
88 + f010 * oneMinX * position.
y)
89 + position.
z * (f001 * oneMinXoneMinY
91 + f011 * oneMinX * position.
y)
92 + position.
x * position.
y * (f110 * oneMinZ
const Source * mSrc
Holds the volume source to decide something.
The class deciding on whether to split an octree node or not when building the octree.
#define _OgreVolumeExport
float Real
Software floating point type.
Real mMaxCellSize
The maximum cell size where the policy stops the splitting.
OctreeNodeSplitPolicy(const Source *src, const Real maxCellSize)
Constructur.
bool doSplit(OctreeNode *node, const Real geometricError) const
Decider for the splitting.
Standard 3-dimensional vector.
Real interpolate(const Real f000, const Real f001, const Real f010, const Real f011, const Real f100, const Real f101, const Real f110, const Real f111, const Vector3 &position) const
Trilinear interpolation of a relative point.
Abstract class defining the density function.
A node in the volume octree.
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.