mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
0031611: BRepOffsetAPI_NormalProjection - can't build wire in 720 but it was possible in 691
This commit is contained in:
parent
762fa70875
commit
fbebf6078c
@ -155,8 +155,10 @@ Standard_Boolean BRepLib_MakeWire::BRepLib_BndBoxVertexSelector::
|
|||||||
Standard_Real aTolV = BRep_Tool::Tolerance(aV);
|
Standard_Real aTolV = BRep_Tool::Tolerance(aV);
|
||||||
|
|
||||||
Standard_Real aL = myP.SquareDistance(aVPnt);
|
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);
|
myResultInd.Append(theObj);
|
||||||
return Standard_True;
|
return Standard_True;
|
||||||
@ -176,7 +178,7 @@ void BRepLib_MakeWire::BRepLib_BndBoxVertexSelector::
|
|||||||
myP = theP;
|
myP = theP;
|
||||||
myVBox.Add(myP);
|
myVBox.Add(myP);
|
||||||
myVBox.Enlarge(theTol);
|
myVBox.Enlarge(theTol);
|
||||||
mySTol = theTol*theTol;
|
mySTol = theTol;
|
||||||
myVInd = theVInd;
|
myVInd = theVInd;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user