From: eap Date: Mon, 11 Mar 2013 11:10:27 +0000 (+0000) Subject: Fix the regression entered by fix of X-Git-Tag: pluginMGCleaner~57 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=28489e5c192b206d50be7c3ade020aadb423417e;hp=fd24bd006b65ee541f0fdbb840fb3bfd39c8b184;p=modules%2Fsmesh.git Fix the regression entered by fix of 0021999: EDF 2480 SMESH : Aspect ratio on a flat mesh - if ( A < theEps ) - return theInf; + if ( A < Precision::Angular() ) + return 0.; --- diff --git a/src/Controls/SMESH_Controls.cxx b/src/Controls/SMESH_Controls.cxx index eb1e5bdb9..3a1e5f514 100644 --- a/src/Controls/SMESH_Controls.cxx +++ b/src/Controls/SMESH_Controls.cxx @@ -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; }