29#ifndef _SMESH_OCTREE_HXX_
30#define _SMESH_OCTREE_HXX_
58 inline static int getChildIndex(
double x,
double y,
double z,
const gp_XYZ& boxMiddle);
75 return (x > mid.X()) + ( y > mid.Y())*2 + (z > mid.Z())*4;
#define SMESHUtils_EXPORT
Definition: SMESH_Utils.hxx:37
3D tree of anything.
Definition: SMESH_Octree.hxx:45
virtual ~SMESH_Octree()
Definition: SMESH_Octree.hxx:52
static int getChildIndex(double x, double y, double z, const gp_XYZ &boxMiddle)
Return index of a child the given point is in.
Definition: SMESH_Octree.hxx:73
SMESH_Tree< Bnd_B3d, 8 > TBaseTree
Definition: SMESH_Octree.hxx:47
Base class for 2D and 3D trees.
Definition: SMESH_Tree.hxx:60
virtual double maxSize() const =0
virtual void enlargeByFactor(box_type *box, double factor) const =0
virtual box_type * newChildBox(int childIndex) const =0
Definition: SMESH_Tree.hxx:38