PAL13473 (Build repetitive mesh)

Protect AspectRatio3D::GetValue() from FPE signal
This commit is contained in:
eap 2006-12-06 14:48:33 +00:00
parent cb75222e29
commit dbb3cdd2ec

View File

@ -564,7 +564,8 @@ double AspectRatio3D::GetValue( const TSequenceOfXYZ& P )
//double aVolume = getVolume(aLen); //double aVolume = getVolume(aLen);
double aHeight = getMaxHeight(aLen); double aHeight = getMaxHeight(aLen);
static double aCoeff = sqrt(2.0)/12.0; static double aCoeff = sqrt(2.0)/12.0;
aQuality = aCoeff*aHeight*aSumArea/aVolume; if ( aVolume > DBL_MIN )
aQuality = aCoeff*aHeight*aSumArea/aVolume;
break; break;
} }
case 5:{ case 5:{