From 094b4770311151a4c13b78f5e28061f1e1127ace Mon Sep 17 00:00:00 2001 From: akl Date: Mon, 19 Jan 2009 14:56:57 +0000 Subject: [PATCH] Correction of 'maxh' parameter computation during 20124 issue fixing. --- src/NETGENPlugin/NETGENPlugin_Mesher.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.39.2