is an annotation of MeshRegion and BoundaryMeshRegion objects that gives a quality measure for mesh cells.
MeshCellQuality
is an annotation of MeshRegion and BoundaryMeshRegion objects that gives a quality measure for mesh cells.
Details
- AnnotationValue[{ℛ,itemspec},MeshCellQuality] gives the quality measures for all cells in a MeshRegion or BoundaryMeshRegion object ℛ specified by itemspec.
- The quality measure
is computed so that for regular polygons and polyhedra
and for degenerate polygons and polyhedra
. - MeshCellQuality is intrinsic to the cell and cannot be modified using Annotate, AnnotationDelete, or AnnotationValue.
Examples
open all close allBasic Examples (1)
Find the quality measures for the cells in a MeshRegion object:
ℛ = DiscretizeRegion[Disk[], MaxCellMeasure -> .02]Show a histogram of cell qualities:
Histogram[AnnotationValue[{ℛ, 2}, MeshCellQuality]]Scope (2)
Cell indices can be used to get MeshCellQuality:
ℛ = DelaunayMesh[RandomReal[1, {10, 2}]]AnnotationValue[{ℛ, {2, {3, 4, 5}}}, MeshCellQuality]Cells can be used to get MeshCellQuality:
ℛ = MeshRegion[{{0, 0}, {1, 0}, {0, 1}, {2, 1}}, Polygon[{{1, 2, 3}, {2, 4, 3}}]]AnnotationValue[{ℛ, Polygon[{2, 4, 3}]}, MeshCellQuality]Properties & Relations (1)
MeshCellQuality is only meaningful for 2D and 3D cells:
ℛ = MeshRegion[{{0, 0, 0}, {1, 0, 0}, {2, 0, 0}, {3, 0, -1 / 2}, {3, 0, 1 / 2}, {4, -1 / 2, 0}, {4, 1 / 2, 0}}, {Point[1], Line[{2, 3}], Triangle[{3, 4, 5}], Tetrahedron[{4, 6, 5, 7}]}]AnnotationValue[{ℛ, {{2, 1}, {3, 1}}}, MeshCellQuality]For 0D and 1D cells, the quality is always 1:
AnnotationValue[{ℛ, {{0, 1}, {1, 1}}}, MeshCellQuality]Possible Issues (1)
MeshCellQuality cannot be modified:
mr = MeshRegion[{{0, 0}, {1, 0}, {1, 1}, {0, 1}}, Polygon[{{1, 2, 3}, {3, 4, 1}}]]Annotate[{mr, 2}, MeshCellQuality -> .5]See Also
Related Guides
History
Text
Wolfram Research (2014), MeshCellQuality, Wolfram Language function, https://reference.wolfram.com/language/ref/MeshCellQuality.html.
CMS
Wolfram Language. 2014. "MeshCellQuality." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/MeshCellQuality.html.
APA
Wolfram Language. (2014). MeshCellQuality. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/MeshCellQuality.html
BibTeX
@misc{reference.wolfram_2026_meshcellquality, author="Wolfram Research", title="{MeshCellQuality}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/MeshCellQuality.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_meshcellquality, organization={Wolfram Research}, title={MeshCellQuality}, year={2014}, url={https://reference.wolfram.com/language/ref/MeshCellQuality.html}, note=[Accessed: 13-June-2026]}