From: eap Date: Tue, 22 Oct 2019 17:18:37 +0000 (+0300) Subject: #17845 [EDF] Modifications of Automatic meshing X-Git-Tag: V9_5_0a1~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9bcffae927227e5559d26966bfe9366769e17890;p=plugins%2Fnetgenplugin.git #17845 [EDF] Modifications of Automatic meshing --- diff --git a/resources/NETGENPlugin.xml b/resources/NETGENPlugin.xml index 5bb393e..f57d621 100644 --- a/resources/NETGENPlugin.xml +++ b/resources/NETGENPlugin.xml @@ -164,17 +164,4 @@ - - - - - - - - - diff --git a/src/NETGENPlugin/NETGENPlugin_Hypothesis.cxx b/src/NETGENPlugin/NETGENPlugin_Hypothesis.cxx index b9826db..c1c7ffe 100644 --- a/src/NETGENPlugin/NETGENPlugin_Hypothesis.cxx +++ b/src/NETGENPlugin/NETGENPlugin_Hypothesis.cxx @@ -666,5 +666,13 @@ bool NETGENPlugin_Hypothesis::SetParametersByDefaults(const TDefaults& dflts, else if ( theMesh && theMesh->HasShapeToMesh() ) _minSize = NETGENPlugin_Mesher::GetDefaultMinSize( theMesh->GetShapeToMesh(), _maxSize ); + if ( dflts._way == SMESH_Hypothesis::BY_AVERAGE_LENGTH ) + { + _minSize = dflts._elemLength / 100.; + _chordalError = dflts._elemLength / 2.; + _chordalErrorEnabled = true; + _quadAllowed = dflts._quadDominated; + } + return _nbSegPerEdge && _maxSize > 0; }