]> SALOME platform Git repositories - plugins/netgenplugin.git/commitdiff
Salome HOME
#17845 [EDF] Modifications of Automatic meshing
authoreap <eap@opencascade.com>
Tue, 22 Oct 2019 17:18:37 +0000 (20:18 +0300)
committereap <eap@opencascade.com>
Tue, 22 Oct 2019 17:18:37 +0000 (20:18 +0300)
resources/NETGENPlugin.xml
src/NETGENPlugin/NETGENPlugin_Hypothesis.cxx

index 5bb393e4b4030815a0604a214b9ab34788f5ce53..f57d6219212e1db0965f7cef9670167150f9b761 100644 (file)
 
   </algorithms>
 </meshers-group>
-
-<hypotheses-set-group>
-
-    <hypotheses-set name ="Automatic Tetrahedralization"
-                    hypos="NETGEN_Parameters"
-                    algos="NETGEN_2D3D"/>
-
-    <hypotheses-set name ="Automatic Triangulation"
-                    hypos="NETGEN_Parameters_2D"
-                    algos="NETGEN_2D"/>
-
-</hypotheses-set-group>
-
 </meshers>
index b9826dbc706f468c9d548ff353e1f1a1b88ab495..c1c7ffe58250d85b67021154a3fbe041410a162a 100644 (file)
@@ -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;
 }