From 53fc7358f26d55dc9f10a0652297b8f5190697e1 Mon Sep 17 00:00:00 2001 From: ichesnok Date: Wed, 3 Apr 2024 15:55:55 +0100 Subject: [PATCH] 0033662: Data Exchange - Move everything exclude Animation to OCCT master Changed tolerance criterion in gce_MakeCirc::gce_MakeCirc(). Added additional conditional for if () in BRepClass_FaceExplorer::CheckPoint(). --- 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);