]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Minor fix
authorouv <ouv@opencascade.com>
Mon, 23 Jun 2008 11:31:50 +0000 (11:31 +0000)
committerouv <ouv@opencascade.com>
Mon, 23 Jun 2008 11:31:50 +0000 (11:31 +0000)
src/PIPELINE/VISU_DeformedShapePL.cxx

index 6631af081dda168fcf1ec15b0334ffc25b797cec..d1e8d6f381497c90d5a0a4a4e1f4516cde379aff 100644 (file)
@@ -109,6 +109,8 @@ VISU_DeformedShapePL
       aVolume *= aVol;
     }
   }
+  if( fabs(idim) < 1.0 / VTK_LARGE_FLOAT )
+    return 0.0; // to avoid division by zero
   aVolume /= aNbElem;
   return pow(aVolume, vtkFloatingPointType(1.0/idim));
 }