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

0031029: BRepLib::SameParameter regression in OCCT 7.4 from OCCT 7.3

1. BRepLib.cxx: calculation of 2d tolerance is changed in method BRepLib::SameParameter(Edge..)
2. Geom2dConvert.cxx: incorrect comparing
"SquareDistance < tolerance"
is replaced by
"SquareDistance < tolerance*tolerance"
because tolerance is linear value.
This commit is contained in:
ifv
2019-10-14 16:51:52 +03:00
committed by apn
parent 8c787b5fa9
commit d7992a77f6
3 changed files with 23 additions and 10 deletions

View File

@@ -1480,7 +1480,7 @@ void Geom2dConvert::C0BSplineToC1BSplineCurve(Handle(Geom2d_BSplineCurve)& BS,
BS->D1(BS->FirstParameter(),point1,V1); //a verifier
BS->D1(BS->LastParameter(),point2,V2);
if ((point1.SquareDistance(point2) < tolerance) &&
if ((point1.SquareDistance(point2) < tolerance * tolerance) &&
(V1.IsParallel(V2, anAngularToler)))
{
closed_flag = Standard_True;