1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-19 13:40:49 +03:00

Correction for redmine issue #150 - make wire builder more stable.

This commit is contained in:
aml
2016-10-13 13:01:25 +03:00
parent 9112bc3c6a
commit ac1cbd566d

View File

@@ -127,8 +127,13 @@ Standard_Boolean ShapeAnalysis_BoxBndTreeSelector::
myArrIndices(minInd) = theObj; myArrIndices(minInd) = theObj;
if((min3d - myMin3d) > RealSmall()) if((min3d - myMin3d) > RealSmall())
myArrIndices(maxInd) = 0; myArrIndices(maxInd) = 0;
myMin3d = min3d; if ( (myArrIndices(Last) && minInd == Last) ||
(!myArrIndices(Last) && minInd == First))
{
myMin3d = min3d;
}
if (min3d > myTol) if (min3d > myTol)
{ {
myStatus = ShapeExtend::EncodeStatus (ShapeExtend_FAIL2); myStatus = ShapeExtend::EncodeStatus (ShapeExtend_FAIL2);