From: eap Date: Thu, 17 Oct 2013 12:48:25 +0000 (+0000) Subject: 22355: EDF SMESH: New 1D hypothesis "Adaptive" X-Git-Tag: V7_3_0a1~119 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ed55bd5c251345ef892d412f3b5fc098a52e3046;p=modules%2Fsmesh.git 22355: EDF SMESH: New 1D hypothesis "Adaptive" make getChildIndex() static --- diff --git a/src/SMESHUtils/SMESH_Octree.hxx b/src/SMESHUtils/SMESH_Octree.hxx index adb74b560..ebcc8dd64 100644 --- a/src/SMESHUtils/SMESH_Octree.hxx +++ b/src/SMESHUtils/SMESH_Octree.hxx @@ -55,7 +55,7 @@ public: double maxSize() const; // Return index of a child the given point is in - inline int getChildIndex(double x, double y, double z, const gp_XYZ& boxMiddle)const; + inline static int getChildIndex(double x, double y, double z, const gp_XYZ& boxMiddle); protected: @@ -67,7 +67,7 @@ public: /*! * \brief Return index of a child the given point is in */ -inline int SMESH_Octree::getChildIndex(double x, double y, double z, const gp_XYZ& mid) const +inline int SMESH_Octree::getChildIndex(double x, double y, double z, const gp_XYZ& mid) { return (x > mid.X()) + ( y > mid.Y())*2 + (z > mid.Z())*4; }