From dbb3cdd2ec07aa9575ce737a58722b7892ec369c Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 6 Dec 2006 14:48:33 +0000 Subject: [PATCH] PAL13473 (Build repetitive mesh) Protect AspectRatio3D::GetValue() from FPE signal --- src/Controls/SMESH_Controls.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Controls/SMESH_Controls.cxx b/src/Controls/SMESH_Controls.cxx index a6ae0af99..8b27024a6 100644 --- a/src/Controls/SMESH_Controls.cxx +++ b/src/Controls/SMESH_Controls.cxx @@ -564,7 +564,8 @@ double AspectRatio3D::GetValue( const TSequenceOfXYZ& P ) //double aVolume = getVolume(aLen); double aHeight = getMaxHeight(aLen); static double aCoeff = sqrt(2.0)/12.0; - aQuality = aCoeff*aHeight*aSumArea/aVolume; + if ( aVolume > DBL_MIN ) + aQuality = aCoeff*aHeight*aSumArea/aVolume; break; } case 5:{ -- 2.39.2