/*!
-\page max_element_length_2d_page Max Element Length 2D
+\page max_element_length_2d_page Element Diameter 2D
\n This quality control criterion consists of calculation of length of
the edges and diagonals combining the meshing elements (triangles and quadrangles)
of your mesh.
-<em>To apply the Max Element Length 2D quality criterion to your mesh:</em>
+<em>To apply the Element Diameter 2D quality criterion to your mesh:</em>
<ol>
<li>Display your mesh in the viewer. </li>
-<li>Choose <b>Controls > Face Controls > Max Element Length 2D</b> or click
-<em>"Max Element Length 2D"</em> button in the toolbar.
+<li>Choose <b>Controls > Face Controls > Element Diameter 2D</b> or click
+<em>"Element Diameter 2D"</em> button in the toolbar.
\image html image42.png
-<center><em>"Max Element Length 2D" button</em></center>
+<center><em>"Element Diameter 2D" button</em></center>
Your mesh will be displayed in the viewer with its elements colored according to the
applied mesh quality control criterion:
</ol>
<br><b>See Also</b> a sample TUI Script of a
-\ref tui_max_element_length_2d "Max Element Length 2D quality control" operation.
+\ref tui_max_element_length_2d "Element Diameter 2D quality control" operation.
*/
\ No newline at end of file
/*!
-\page max_element_length_3d_page Max Element Length 3D
+\page max_element_length_3d_page Element Diameter 3D
\n This quality control criterion consists of calculation of length of
the edges and diagonals combining the 3D meshing elements
(tetrahedrons, pyramids, pentahendrons, hexahedrons and polyhedrons)
of your mesh.
-<em>To apply the Max Element Length 3D quality criterion to your mesh:</em>
+<em>To apply the Element Diameter 3D quality criterion to your mesh:</em>
<ol>
<li>Display your mesh in the viewer. </li>
-<li>Choose <b>Controls > Volume Controls > Max Element Length 3D</b> or click
-<em>"Max Element Length 3D"</em> button in the toolbar.
+<li>Choose <b>Controls > Volume Controls > Element Diameter 3D</b> or click
+<em>"Element Diameter 3D"</em> button in the toolbar.
\image html image43.png
-<center><em>"Max Element Length 3D" button</em></center>
+<center><em>"Element Diameter 3D" button</em></center>
Your mesh will be displayed in the viewer with its elements colored according to the
applied mesh quality control criterion:
</ol>
<br><b>See Also</b> a sample TUI Script of a
-\ref tui_max_element_length_3d "Max Element Length 3D quality control" operation.
+\ref tui_max_element_length_3d "Element Diameter 3D quality control" operation.
*/
\ No newline at end of file
angular tolerance (defined in degrees). Selection continues among all neighbor faces of already
selected ones.<br>
</li><li>
-<b>Max Element Length 2D</b> selects triangles and quadrangles combining of the edges and
+<b>Element Diameter 2D</b> selects triangles and quadrangles combining of the edges and
diagonals with a value of length, which is more, less or equal
(within a given <b>Tolerance</b>) to the predefined <b>Threshold Value</b>. See also a
-\ref max_element_length_2d_page "Max Element Length 2D quality control".
+\ref max_element_length_2d_page "Element Diameter 2D quality control".
</li>
</ul>
\ref volume_page "Volume quality control"), which is more, less or equal (within a given
<b>Tolerance</b>) to the predefined <b>Threshold Value</b>.
</li><li>
-<b>Max Element Length 3D</b> selects 3D mesh elements combining of the edges and
+<b>Element Diameter 3D</b> selects 3D mesh elements combining of the edges and
diagonals with a value of length, which is more, less or equal
(within a given <b>Tolerance</b>) to the predefined <b>Threshold Value</b>. See also a
-\ref max_element_length_3d_page "Max Element Length 3D quality control".
+\ref max_element_length_3d_page "Element Diameter 3D quality control".
</li><li>
<b>Bad oriented volume</b> selects mesh volumes, which are incorrectly oriented from
the point of view of MED convention.
\sa \ref tui_length_2d
-\section filter_max_element_length_2d Max Element Length 2D
+\section filter_max_element_length_2d Element Diameter 2D
Filter 2D mesh elements (faces) corresponding to the maximum length
value of its edges and diagonals:
\sa \ref tui_max_element_length_2d
-\section filter_max_element_length_3d Max Element Length 3D
+\section filter_max_element_length_3d Element Diameter 3D
Filter 3D mesh elements (volumes) corresponding to the maximum length
value of its edges and diagonals:
salome.sg.updateObjBrowser(1)
\endcode
-\section tui_max_element_length_2d Max Element Length 2D
+\section tui_max_element_length_2d Element Diameter 2D
\code
import SMESH_mechanic
mesh = SMESH_mechanic.mesh
salome = SMESH_mechanic.salome
-# Criterion : MAX ELEMENT LENGTH 2D > 10
+# Criterion : ELEMENT DIAMETER 2D > 10
mel_2d_margin = 10
aFilter = smesh.GetFilter(smesh.FACE, smesh.FT_MaxElementLength2D, smesh.FT_MoreThan, mel_2d_margin)
anIds = mesh.GetIdsFromFilter(aFilter)
# print the result
-print "Criterion: Max Element Length 2D Ratio > ", mel_2d_margin, " Nb = ", len(anIds)
+print "Criterion: Element Diameter 2D Ratio > ", mel_2d_margin, " Nb = ", len(anIds)
j = 1
for i in range(len(anIds)):
if j > 20: j = 1; print ""
print ""
# create a group
-aGroup = mesh.CreateEmptyGroup(smesh.FACE, "Max Element Length 2D > " + `mel_2d_margin`)
+aGroup = mesh.CreateEmptyGroup(smesh.FACE, "Element Diameter 2D > " + `mel_2d_margin`)
aGroup.Add(anIds)
salome.sg.updateObjBrowser(1)
salome.sg.updateObjBrowser(1)
\endcode
-\section tui_max_element_length_3d Max Element Length 3D
+\section tui_max_element_length_3d Element Diameter 3D
\code
import SMESH_mechanic_tetra
mesh = SMESH_mechanic_tetra.mesh
salome = SMESH_mechanic_tetra.salome
-# Criterion : MAX ELEMENT LENGTH 3D > 10
+# Criterion : ELEMENT DIAMETER 3D > 10
mel_3d_margin = 10
aFilter = smesh.GetFilter(smesh.FACE, smesh.FT_MaxElementLength3D, smesh.FT_MoreThan, mel_3d_margin)
anIds = mesh.GetIdsFromFilter(aFilter)
# print the result
-print "Criterion: Max Element Length 3D Ratio > ", mel_3d_margin, " Nb = ", len(anIds)
+print "Criterion: Element Diameter 3D Ratio > ", mel_3d_margin, " Nb = ", len(anIds)
j = 1
for i in range(len(anIds)):
if j > 20: j = 1; print ""
print ""
# create a group
-aGroup = mesh.CreateEmptyGroup(smesh.FACE, "Max Element Length 3D > " + `mel_3d_margin`)
+aGroup = mesh.CreateEmptyGroup(smesh.FACE, "Element Diameter 3D > " + `mel_3d_margin`)
aGroup.Add(anIds)
salome.sg.updateObjBrowser(1)
</message>
<message>
<source>MAX_ELEMENT_LENGTH_2D</source>
- <translation>Max Element Length 2D</translation>
+ <translation>Element Diameter 2D</translation>
</message>
<message>
<source>MAX_ELEMENT_LENGTH_3D</source>
- <translation>Max Element Length 3D</translation>
+ <translation>Element Diameter 3D</translation>
</message>
<message>
<source>MEN_ADD</source>
</message>
<message>
<source>MEN_MAX_ELEMENT_LENGTH_2D</source>
- <translation>Max Element Length 2D</translation>
+ <translation>Element Diameter 2D</translation>
</message>
<message>
<source>MEN_MAX_ELEMENT_LENGTH_3D</source>
- <translation>Max Element Length 3D</translation>
+ <translation>Element Diameter 3D</translation>
</message>
<message>
<source>MEN_MED</source>
</message>
<message>
<source>STB_MAX_ELEMENT_LENGTH_2D</source>
- <translation>Max Element Length 2D</translation>
+ <translation>Element Diameter 2D</translation>
</message>
<message>
<source>STB_MAX_ELEMENT_LENGTH_3D</source>
- <translation>Max Element Length 3D</translation>
+ <translation>Element Diameter 3D</translation>
</message>
<message>
<source>STB_MED</source>
</message>
<message>
<source>TOP_MAX_ELEMENT_LENGTH_2D</source>
- <translation>Max Element Length 2D</translation>
+ <translation>Element Diameter 2D</translation>
</message>
<message>
<source>TOP_MAX_ELEMENT_LENGTH_3D</source>
- <translation>Max Element Length 3D</translation>
+ <translation>Element Diameter 3D</translation>
</message>
<message>
<source>TOP_MED</source>
</message>
<message>
<source>MAX_ELEMENT_LENGTH_2D</source>
- <translation>Max Element Length 2D</translation>
+ <translation>Element Diameter 2D</translation>
</message>
<message>
<source>MAX_ELEMENT_LENGTH_3D</source>
- <translation>Max Element Length 3D</translation>
+ <translation>Element Diameter 3D</translation>
</message>
<message>
<source>MINIMUM_ANGLE</source>
#print anIds[ i ]
-# Criterion : Max Element Length 2D > 10
+# Criterion : Element Diameter 2D > 10
# create group
-aGroup = mesh.MakeGroup("Max Element Length 2D > 10", smesh.FACE, smesh.FT_MaxElementLength2D, smesh.FT_MoreThan, 10 )
+aGroup = mesh.MakeGroup("Element Diameter 2D > 10", smesh.FACE, smesh.FT_MaxElementLength2D, smesh.FT_MoreThan, 10 )
# print result
anIds = aGroup.GetIDs()
-print "Criterion: Max Element Length 2D > 10 Nb = ", len( anIds )
+print "Criterion: Element Diameter 2D > 10 Nb = ", len( anIds )
#for i in range( len( anIds ) ):
#print anIds[ i ]