Correction of 'maxh' parameter computation during 20124 issue fixing.

This commit is contained in:
akl 2009-01-19 15:06:59 +00:00
parent 56780f32fb
commit bce0f0487d

View File

@ -631,7 +631,7 @@ bool NETGENPlugin_Mesher::Compute()
if ( simple3d ) {
if ( double vol = simple3d->GetMaxElementVolume() ) {
// max volume
mparams.maxh = pow( 72 * vol * vol, 1/3. );
mparams.maxh = pow( 72, 1/6. ) * pow( vol, 1/3. );
mparams.maxh = min( mparams.maxh, occgeo.boundingbox.Diam()/2 );
}
else {