]> OCCT Git - occt.git/commitdiff
0033662: Data Exchange - Move everything exclude Animation to OCCT master CR33662
authorichesnok <ichesnok@opencascade.com>
Wed, 3 Apr 2024 14:55:55 +0000 (15:55 +0100)
committerichesnok <ichesnok@opencascade.com>
Thu, 4 Apr 2024 10:15:54 +0000 (11:15 +0100)
Changed tolerance criterion in gce_MakeCirc::gce_MakeCirc().
Added additional conditional for if () in BRepClass_FaceExplorer::CheckPoint().

src/BRepClass/BRepClass_FaceExplorer.cxx
src/gce/gce_MakeCirc.cxx

index 88ad99afb83b7cde1922b9483bec426cf4a9d058..a7a6863da3b13e22a3dfc6be03d4eb1139ba8990 100644 (file)
@@ -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);
index 18ecf6b2b14dc9e1da9b969652916b79143508d1..037aacd84d9d672b5b658801bbc207adcc32986e 100644 (file)
@@ -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);