]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
PAL13473 (Build repetitive mesh)
authoreap <eap@opencascade.com>
Wed, 6 Dec 2006 14:48:33 +0000 (14:48 +0000)
committereap <eap@opencascade.com>
Wed, 6 Dec 2006 14:48:33 +0000 (14:48 +0000)
Protect AspectRatio3D::GetValue() from FPE signal

src/Controls/SMESH_Controls.cxx

index a6ae0af999e649aeb3fc9404fd3049650bb85a19..8b27024a63ba4e1753d1e63298b7b226f75ad663 100644 (file)
@@ -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:{