From 28489e5c192b206d50be7c3ade020aadb423417e Mon Sep 17 00:00:00 2001 From: eap Date: Mon, 11 Mar 2013 11:10:27 +0000 Subject: [PATCH] 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.; --- src/Controls/SMESH_Controls.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.39.2