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

0030090: Modeling Algorithms - BRepLib::FindValidRange does not find valid range for the edge

BRepLib::FindValidRange - check each sampling point to be out of tolerance sphere of the vertex.
Test case for the issue.
This commit is contained in:
emv
2018-08-28 12:22:01 +03:00
committed by bugmaster
parent 56062e13f2
commit 0e48692e82
2 changed files with 14 additions and 1 deletions

View File

@@ -101,7 +101,8 @@ static Standard_Boolean findNearestValidPoint(
// cycle to go out of local singularity
gp_Vec aD1;
theCurve.D1(anUOut, aP, aD1);
if (aD1.SquareMagnitude() < aD1Mag)
isOut = (aP.SquareDistance(theVertPnt) > aSqTol);
if (!isOut && aD1.SquareMagnitude() < aD1Mag)
{
aStepLocal *= 2.;
anUOut += aStepLocal;