]> OCCT Git - occt-copy.git/commitdiff
0031611: BRepOffsetAPI_NormalProjection - can't build wire in 720 but it was possible...
authorifv <ifv@opencascade.com>
Tue, 16 Jun 2020 07:37:11 +0000 (10:37 +0300)
committerkgv <kgv@opencascade.com>
Wed, 15 Jul 2020 13:09:41 +0000 (16:09 +0300)
src/BRepLib/BRepLib_MakeWire_1.cxx

index b30ed8f183c7012e5accc8bd9c243c5c380bfd52..d0e2d47f9d39cae392dbe2f13cc0127600bedd9e 100644 (file)
@@ -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;
 }