Salome HOME
projects
/
modules
/
smesh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb75222
)
PAL13473 (Build repetitive mesh)
author
eap
<eap@opencascade.com>
Wed, 6 Dec 2006 14:48:33 +0000
(14:48 +0000)
committer
eap
<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
patch
|
blob
|
history
diff --git
a/src/Controls/SMESH_Controls.cxx
b/src/Controls/SMESH_Controls.cxx
index a6ae0af999e649aeb3fc9404fd3049650bb85a19..8b27024a63ba4e1753d1e63298b7b226f75ad663 100644
(file)
--- 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:{