Salome HOME
Correction of 'maxh' parameter computation during 20124 issue fixing.
authorakl <akl@opencascade.com>
Mon, 19 Jan 2009 14:56:57 +0000 (14:56 +0000)
committerakl <akl@opencascade.com>
Mon, 19 Jan 2009 14:56:57 +0000 (14:56 +0000)
src/NETGENPlugin/NETGENPlugin_Mesher.cxx

index f43f14705fe531a024b51cc32212a1a3f47bb3ca..0d86eca88a7ab894cf585edec4d71062312a5b19 100644 (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 {