From 96a4eafb752d61ff036a873c3733ac6e32ec2a88 Mon Sep 17 00:00:00 2001 From: nunosilva Date: Wed, 20 Mar 2024 15:08:32 +0000 Subject: [PATCH] quickfix for AR-8012 --- src/BRepClass/BRepClass_FaceExplorer.cxx | 2 +- src/gce/gce_MakeCirc.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/BRepClass/BRepClass_FaceExplorer.cxx b/src/BRepClass/BRepClass_FaceExplorer.cxx index 88ad99afb8..a7a6863da3 100644 --- a/src/BRepClass/BRepClass_FaceExplorer.cxx +++ b/src/BRepClass/BRepClass_FaceExplorer.cxx @@ -96,7 +96,7 @@ Standard_Boolean BRepClass_FaceExplorer::CheckPoint(gp_Pnt2d& thePoint) else { Standard_Real anEpsilon = Epsilon(aDistance); - if (anEpsilon > Max (myUMax - myUMin, myVMax - myVMin)) + if (anEpsilon > Max (myUMax - myUMin, myVMax - myVMin) && anEpsilon > 1e-100) { gp_Vec2d aLinVec(aCenterPnt, thePoint); gp_Dir2d aLinDir(aLinVec); diff --git a/src/gce/gce_MakeCirc.cxx b/src/gce/gce_MakeCirc.cxx index 18ecf6b2b1..037aacd84d 100644 --- a/src/gce/gce_MakeCirc.cxx +++ b/src/gce/gce_MakeCirc.cxx @@ -53,7 +53,7 @@ gce_MakeCirc::gce_MakeCirc(const gp_Pnt& P1 , //========================================================================= Standard_Real dist1, dist2, dist3, aResolution; // - aResolution = gp::Resolution(); + aResolution = 1e-12; // dist1 = P1.Distance(P2); dist2 = P1.Distance(P3);