Compare commits

...

2 Commits

Author SHA1 Message Date
eap
02bb1e0457 #17845 [EDF] Modifications of Automatic meshing 2019-11-05 21:26:42 +03:00
eap
47d1581a2a #17845 [EDF] Modifications of Automatic meshing 2019-10-22 20:18:37 +03:00
2 changed files with 9 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,14 @@ 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.;
_nbSegPerEdge = 1;
_chordalError = dflts._elemLength / 2.;
_chordalErrorEnabled = true;
_quadAllowed = dflts._quadDominated;
}
return _nbSegPerEdge && _maxSize > 0;
}