is an option to MeshRegion, BoundaryMeshRegion and related functions that specifies labels and placements for mesh cells.


MeshCellLabel
is an option to MeshRegion, BoundaryMeshRegion and related functions that specifies labels and placements for mesh cells.
Details

- The following option settings can be used:
-
Automatic use automatic setting for label None use no label "Cell" use mesh cell h[{i1,…}] "CellIndex" use mesh cell index {d,i} for dimension d "Index" use index i from mesh cell index {d,i} "Marker" use mesh cell marker {cellspec1label1,…} use labeli for mesh cell cellspeci - The wrapper Labeled[cellspec,label] is equivalent to Annotation[cellspec,MeshCellLabellabel] and can be used when creating mesh regions in functions such as MeshRegion, BoundaryMeshRegion, etc.
- Placed[label,"Centroid"] can be used to place the label at the centroid of the cell. Placed[label,Tooltip] will place the label in a Tooltip.
- The cell specification cellspec follows the standard form described for MeshRegion and BoundaryMeshRegion.
Examples
open all close allBasic Examples (4)
Scope (12)
Any expression can be used as a label:
Label all cells with tooltips:
By default, labels are placed at the "Centroid":
All can be used to specify all cells:
By default, all cells are labeled:
Label specific vertices and edges of a polygon:
Alternatively, you can specify a head and indices:
Specify a list of cell indices to label:
Related Guides
Text
Wolfram Research (2014), MeshCellLabel, Wolfram Language function, https://reference.wolfram.com/language/ref/MeshCellLabel.html (updated 2015).
CMS
Wolfram Language. 2014. "MeshCellLabel." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2015. https://reference.wolfram.com/language/ref/MeshCellLabel.html.
APA
Wolfram Language. (2014). MeshCellLabel. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/MeshCellLabel.html
BibTeX
@misc{reference.wolfram_2025_meshcelllabel, author="Wolfram Research", title="{MeshCellLabel}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/MeshCellLabel.html}", note=[Accessed: 14-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_meshcelllabel, organization={Wolfram Research}, title={MeshCellLabel}, year={2015}, url={https://reference.wolfram.com/language/ref/MeshCellLabel.html}, note=[Accessed: 14-August-2025]}