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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user