From fbebf6078c075b5167705728af5ba0c8446141f3 Mon Sep 17 00:00:00 2001 From: ifv Date: Tue, 16 Jun 2020 10:37:11 +0300 Subject: [PATCH] 0031611: BRepOffsetAPI_NormalProjection - can't build wire in 720 but it was possible in 691 --- src/BRepLib/BRepLib_MakeWire_1.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/BRepLib/BRepLib_MakeWire_1.cxx b/src/BRepLib/BRepLib_MakeWire_1.cxx index b30ed8f183..d0e2d47f9d 100644 --- a/src/BRepLib/BRepLib_MakeWire_1.cxx +++ b/src/BRepLib/BRepLib_MakeWire_1.cxx @@ -155,8 +155,10 @@ Standard_Boolean BRepLib_MakeWire::BRepLib_BndBoxVertexSelector:: Standard_Real aTolV = BRep_Tool::Tolerance(aV); Standard_Real aL = myP.SquareDistance(aVPnt); + Standard_Real aTol = aTolV + mySTol; + aTol *= aTol; - if (aL < Max(aTolV*aTolV, mySTol)) + if (aL <= aTol) { myResultInd.Append(theObj); return Standard_True; @@ -176,7 +178,7 @@ void BRepLib_MakeWire::BRepLib_BndBoxVertexSelector:: myP = theP; myVBox.Add(myP); myVBox.Enlarge(theTol); - mySTol = theTol*theTol; + mySTol = theTol; myVInd = theVInd; }