From: aml Date: Thu, 13 Oct 2016 10:01:25 +0000 (+0300) Subject: Correction for redmine issue #150 - make wire builder more stable. X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=ac1cbd566dea563cf5530344ac99c4ce285c23fd;p=occt-copy.git Correction for redmine issue #150 - make wire builder more stable. --- diff --git a/src/ShapeAnalysis/ShapeAnalysis_BoxBndTree.cxx b/src/ShapeAnalysis/ShapeAnalysis_BoxBndTree.cxx index 45fd4b3e8f..1926863b67 100644 --- a/src/ShapeAnalysis/ShapeAnalysis_BoxBndTree.cxx +++ b/src/ShapeAnalysis/ShapeAnalysis_BoxBndTree.cxx @@ -127,8 +127,13 @@ Standard_Boolean ShapeAnalysis_BoxBndTreeSelector:: myArrIndices(minInd) = theObj; if((min3d - myMin3d) > RealSmall()) myArrIndices(maxInd) = 0; - - myMin3d = min3d; + + if ( (myArrIndices(Last) && minInd == Last) || + (!myArrIndices(Last) && minInd == First)) + { + myMin3d = min3d; + } + if (min3d > myTol) { myStatus = ShapeExtend::EncodeStatus (ShapeExtend_FAIL2);