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; }