1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-13 14:27:08 +03:00

0031611: BRepOffsetAPI_NormalProjection - can't build wire in 720 but it was possible in 691

This commit is contained in:
ifv
2020-06-16 10:37:11 +03:00
committed by kgv
parent 762fa70875
commit fbebf6078c

View 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;
}