From: ifv Date: Tue, 16 Jun 2020 07:37:11 +0000 (+0300) Subject: 0031611: BRepOffsetAPI_NormalProjection - can't build wire in 720 but it was possible... X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=fbebf6078c075b5167705728af5ba0c8446141f3;p=occt-copy.git 0031611: BRepOffsetAPI_NormalProjection - can't build wire in 720 but it was possible in 691 --- 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; }