29 #ifndef _SMESH_OCTREE_HXX_
30 #define _SMESH_OCTREE_HXX_
32 #include <Bnd_B3d.hxx>
76 inline int getChildIndex(
double x,
double y,
double z,
const gp_XYZ& boxMiddle)
const;
120 return (x > mid.X()) + ( y > mid.Y())*2 + (z > mid.Z())*4;
int getChildIndex(double x, double y, double z, const gp_XYZ &boxMiddle) const
Return index of a child the given point is in.
virtual SMESH_Octree * allocateOctreeChild() const =0
virtual Bnd_B3d * buildRootBox()=0
SMESH_Octree ** myChildren
const Bnd_B3d & getBox() const
SMESH_Octree(Limit *limit=0)
Limit(int maxLevel=8, double minSize=0.)
virtual void buildChildrenData()=0