From: akl Date: Mon, 19 Jan 2009 15:06:59 +0000 (+0000) Subject: Correction of 'maxh' parameter computation during 20124 issue fixing. X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=bce0f0487d421dd977cfacd0bd35ba026d73a7dc;p=plugins%2Fnetgenplugin.git Correction of 'maxh' parameter computation during 20124 issue fixing. --- diff --git a/src/NETGENPlugin/NETGENPlugin_Mesher.cxx b/src/NETGENPlugin/NETGENPlugin_Mesher.cxx index f43f147..0d86eca 100644 --- a/src/NETGENPlugin/NETGENPlugin_Mesher.cxx +++ b/src/NETGENPlugin/NETGENPlugin_Mesher.cxx @@ -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 {