Salome HOME
Fix the regression entered by fix of
authoreap <eap@opencascade.com>
Mon, 11 Mar 2013 11:10:27 +0000 (11:10 +0000)
committereap <eap@opencascade.com>
Mon, 11 Mar 2013 11:10:27 +0000 (11:10 +0000)
0021999: EDF 2480 SMESH : Aspect ratio on a flat mesh

-    if ( A < theEps )
-      return theInf;
+    if ( A < Precision::Angular() )
+      return 0.;

src/Controls/SMESH_Controls.cxx

index eb1e5bdb95e8f0d7879d1588ac4dc96b45f5977f..3a1e5f514506021043e7749ac82ba5f88dd2a32e 100644 (file)
@@ -1423,8 +1423,8 @@ double Skew::GetValue( const TSequenceOfXYZ& P )
       ? 0. : fabs( PI2 - v1.Angle( v2 ) );
 
     //BUG SWP12743
-    if ( A < theEps )
-      return theInf;
+    if ( A < Precision::Angular() )
+      return 0.;
 
     return A * 180. / M_PI;
   }