X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROData%2FHYDROData_QuadtreeNode.cxx;h=03e0c943fc85521297623d386beba7e6a944eb79;hb=3ad1721baafb8864b968fe6ef6ab68ecf49a669e;hp=ba940dad7317689812958fdf7b38b9884d13330c;hpb=2011bf802cc214aab3c3d0b055bc8f4c01fd6014;p=modules%2Fhydro.git diff --git a/src/HYDROData/HYDROData_QuadtreeNode.cxx b/src/HYDROData/HYDROData_QuadtreeNode.cxx index ba940dad..03e0c943 100644 --- a/src/HYDROData/HYDROData_QuadtreeNode.cxx +++ b/src/HYDROData/HYDROData_QuadtreeNode.cxx @@ -31,7 +31,7 @@ #include -#define _DEVDEBUG_ +//#define _DEVDEBUG_ #include "HYDRO_trace.hxx" using namespace std; @@ -49,12 +49,12 @@ HYDROData_QuadtreeNode::HYDROData_QuadtreeNode(Nodes_3D* theNodes, const double minBoxSize) : HYDROData_Quadtree(new Limit(maxLevel, minBoxSize, maxNbNodes)), myNodes(theNodes), myPrecision(0.25) { - DEBTRACE("---------------------------- HYDROData_QuadtreeNode root constructor"); + //DEBTRACE("---------------------------- HYDROData_QuadtreeNode root constructor"); if (myNodes) { - DEBTRACE(" --- start compute"); + //DEBTRACE(" --- start compute"); compute(); - DEBTRACE(" --- end compute"); + //DEBTRACE(" --- end compute"); } } @@ -123,7 +123,7 @@ Bnd_B2d* HYDROData_QuadtreeNode::buildRootBox() Nodes_3D::iterator it = myNodes->begin(); for (; it != myNodes->end(); it++) { - const gp_XYZ* n1 = *it; + const gpi_XYZ* n1 = *it; gp_XY p1(n1->X(), n1->Y()); box->Add(p1); } @@ -162,7 +162,7 @@ void HYDROData_QuadtreeNode::buildChildrenData() Nodes_3D::iterator it = myNodes->begin(); while (it != myNodes->end()) { - gp_XYZ* n1 = *it; + gpi_XYZ* n1 = *it; int ChildBoxNum = getChildIndex(n1->X(), n1->Y(), mid); HYDROData_QuadtreeNode* myChild = dynamic_cast(myChildren[ChildBoxNum]); myChild->myNodes->push_back(n1); @@ -187,7 +187,7 @@ void HYDROData_QuadtreeNode::buildChildrenData() * \param Result - list of Nodes potentials to be near Node */ void HYDROData_QuadtreeNode::NodesAround(const gp_XY& Node, - list* Result, + list* Result, const double precision) { gp_XY p(Node); @@ -217,7 +217,7 @@ void HYDROData_QuadtreeNode::NodesAround(const gp_XY& Node, * \retval bool - true if an exact overlapping found !!! */ bool HYDROData_QuadtreeNode::NodesAround(const gp_XY& node, - map& dist2Nodes, + map& dist2Nodes, double precision) { if (!dist2Nodes.empty()) @@ -246,7 +246,7 @@ bool HYDROData_QuadtreeNode::NodesAround(const gp_XY& node, Nodes_3D::iterator nIt = myNodes->begin(); for (; nIt != myNodes->end(); ++nIt) { - const gp_XYZ* p = *nIt; + const gpi_XYZ* p = *nIt; gp_XY p2(p->X(), p->Y()); double dist2 = (node - p2).SquareModulus(); if (dist2 < minDist)