1 .. _max_element_length_2d_page:
7 This quality control criterion consists in calculation of the maximal length of edges and diagonals of 2D mesh elements (triangles and quadrangles). For polygons the value is always zero.
9 *To apply the Element Diameter 2D quality criterion to your mesh:*
11 .. |img| image:: ../images/image42.png
13 #. Display your mesh in the viewer.
14 #. Choose **Controls > Face Controls > Element Diameter 2D** or click *"Element Diameter 2D"* button |img| in the toolbar.
16 Your mesh will be displayed in the viewer with its elements colored according to the applied mesh quality control criterion:
18 .. image:: ../images/max_element_length_2d.png
21 **See Also** a sample TUI Script of a :ref:`tui_max_element_length_2d` filter.