is an option and annotation of MeshRegion, BoundaryMeshRegion, and related functions that specifies mesh cells to highlight.


MeshCellHighlight
is an option and annotation of MeshRegion, BoundaryMeshRegion, and related functions that specifies mesh cells to highlight.
Details

- MeshCellHighlight provides settings to use for highlighting mesh cells in MeshRegion and related objects.
- The following option settings can be used:
-
{cellspec1,…} use automatic setting to highlight mesh cell cellspeci {cellspec1->style1,…} use stylei to highlight mesh cell cellspeci - The wrapper Annotation[cellspec,MeshCellHighlightstyle] can be used when creating mesh regions in functions such as MeshRegion, BoundaryMeshRegion, etc.
- The cell specification cellspec follows the standard form described for MeshRegion and BoundaryMeshRegion.
- MeshCellHighlight->style specifies the default highlighting styles to use for mesh cells.
Examples
open all close allBasic Examples (3)
Scope (11)
Highlight all 1D cells red and all 0D cells black:
Highlight all 2D cells transparent orange, 1D elements red, and 0D elements black:
Highlight all 2D cells transparent orange:
Individual cells can be highlighted using their cell index:
All can be used to specify all cells:
By default, all cells are highlighted:
Highlight all cells of a given dimension:
Specify a list of cell indices to highlight:
Highlight cells whose dimensions match a pattern:
Highlight cells whose indices match a pattern:
Highlight with graphics directives appropriate for the dimension of the components:
MeshCellHighlight can be combined with MeshCellShapeFunction:
Related Guides
History
Text
Wolfram Research (2015), MeshCellHighlight, Wolfram Language function, https://reference.wolfram.com/language/ref/MeshCellHighlight.html.
CMS
Wolfram Language. 2015. "MeshCellHighlight." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/MeshCellHighlight.html.
APA
Wolfram Language. (2015). MeshCellHighlight. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/MeshCellHighlight.html
BibTeX
@misc{reference.wolfram_2025_meshcellhighlight, author="Wolfram Research", title="{MeshCellHighlight}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/MeshCellHighlight.html}", note=[Accessed: 15-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_meshcellhighlight, organization={Wolfram Research}, title={MeshCellHighlight}, year={2015}, url={https://reference.wolfram.com/language/ref/MeshCellHighlight.html}, note=[Accessed: 15-August-2025]}