mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-06 18:26:22 +03:00
0023140: Suspicious if
Condition that is always true was replaced on assigning a variable 'Tol' to Precision::Confusion.
This commit is contained in:
parent
9a79c9529a
commit
5768cd55b7
@ -174,16 +174,12 @@ static void EvalParameters(const Geom2dAdaptor_Curve& Bis,
|
|||||||
TColgp_SequenceOfPnt& Params)
|
TColgp_SequenceOfPnt& Params)
|
||||||
{
|
{
|
||||||
Geom2dInt_GInter Intersector;
|
Geom2dInt_GInter Intersector;
|
||||||
Standard_Real Tol = Precision::Intersection();
|
Standard_Real Tol = Precision::Confusion();
|
||||||
// Standard_Real TolC = 1.e-9;
|
// Standard_Real TolC = 1.e-9;
|
||||||
|
|
||||||
Geom2dAdaptor_Curve CBis(Bis);
|
Geom2dAdaptor_Curve CBis(Bis);
|
||||||
Geom2dAdaptor_Curve CAC (AC);
|
Geom2dAdaptor_Curve CAC (AC);
|
||||||
|
|
||||||
if(AC.GetType() != GeomAbs_Circle || AC.GetType() != GeomAbs_Line) {
|
|
||||||
Tol *= 100.;
|
|
||||||
}
|
|
||||||
|
|
||||||
//Intersector = Geom2dInt_GInter(CBis, CAC, TolC, Tol);
|
//Intersector = Geom2dInt_GInter(CBis, CAC, TolC, Tol);
|
||||||
Intersector = Geom2dInt_GInter(CAC, CBis, Tol, Tol);
|
Intersector = Geom2dInt_GInter(CAC, CBis, Tol, Tol);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user