From aa41a6f2470875154bbe67136869e5a495565bf6 Mon Sep 17 00:00:00 2001 From: aml Date: Fri, 14 Oct 2016 09:44:56 +0300 Subject: [PATCH] 0027965: Error in logic of "ConnectEdgesToWires" method Minimal distance computation has been corrected to be in accordance with current edge. --- src/ShapeAnalysis/ShapeAnalysis_BoxBndTree.cxx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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); -- 2.39.5