#17845 [EDF] Modifications of Automatic meshing
This commit is contained in:
parent
abeec499b2
commit
9bcffae927
@ -164,17 +164,4 @@
|
|||||||
|
|
||||||
</algorithms>
|
</algorithms>
|
||||||
</meshers-group>
|
</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>
|
</meshers>
|
||||||
|
@ -666,5 +666,13 @@ bool NETGENPlugin_Hypothesis::SetParametersByDefaults(const TDefaults& dflts,
|
|||||||
else if ( theMesh && theMesh->HasShapeToMesh() )
|
else if ( theMesh && theMesh->HasShapeToMesh() )
|
||||||
_minSize = NETGENPlugin_Mesher::GetDefaultMinSize( theMesh->GetShapeToMesh(), _maxSize );
|
_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;
|
return _nbSegPerEdge && _maxSize > 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user