#17845 [EDF] Modifications of Automatic meshing
This commit is contained in:
parent
287c27f1af
commit
47d1581a2a
@ -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>
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user