mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-18 14:27:39 +03:00
0033515: Modeling Algorithm - BRepExtrema_DistShapeShape poduces wrong result
Changed redundant square operation
This commit is contained in:
@@ -627,7 +627,7 @@ void Extrema_GenExtCC::Perform()
|
||||
{
|
||||
Standard_Real aDist1 = ProjPOnC(C1.Value(aT1[iT]), anExtPC2);
|
||||
Standard_Real aDist2 = ProjPOnC(C2.Value(aT2[iT]), anExtPC1);
|
||||
isParallel = (Abs(Min(aDist1, aDist2) - aF) < Precision::Confusion());
|
||||
isParallel = (Abs(Min(aDist1, aDist2) - aF * aF) < Precision::Confusion());
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -43,7 +43,7 @@ static Standard_Boolean _Value(const Adaptor3d_Curve& C1,
|
||||
return Standard_False;
|
||||
}
|
||||
|
||||
F = C2.Value(v).SquareDistance(C1.Value(u));
|
||||
F = C2.Value(v).Distance(C1.Value(u));
|
||||
return Standard_True;
|
||||
}
|
||||
|
||||
@@ -64,7 +64,7 @@ static Standard_Boolean _Value(const Adaptor2d_Curve2d& C1,
|
||||
return Standard_False;
|
||||
}
|
||||
|
||||
F = C2.Value(v).SquareDistance(C1.Value(u));
|
||||
F = C2.Value(v).Distance(C1.Value(u));
|
||||
return Standard_True;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user