#17845 [EDF] Modifications of Automatic meshing

This commit is contained in:
eap 2019-10-22 20:18:37 +03:00
parent abeec499b2
commit 9bcffae927
2 changed files with 8 additions and 13 deletions

View File

@ -164,17 +164,4 @@
</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>

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