From 9bcffae927227e5559d26966bfe9366769e17890 Mon Sep 17 00:00:00 2001 From: eap Date: Tue, 22 Oct 2019 20:18:37 +0300 Subject: [PATCH] #17845 [EDF] Modifications of Automatic meshing --- resources/NETGENPlugin.xml | 13 ------------- src/NETGENPlugin/NETGENPlugin_Hypothesis.cxx | 8 ++++++++ 2 files changed, 8 insertions(+), 13 deletions(-) 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; } -- 2.39.2