HighlightMesh
✖
HighlightMesh
highlights the cells specified by cellspeci in the mesh region mr.
Details and Options

- The cell specification follows the standard form {dim,indexes} and is specifically described in the reference pages for MeshRegion and BoundaryMeshRegion.
- HighlightMesh[mr,{ms1,ms2,…}] returns a new mesh region with the cells specified by msi highlighted.
- The following wrappers can be used:
-
Labeled[cell,…] display the element with labeling Style[cell,spec] show the element using the specified styles - HighlightMesh takes the same options as MeshRegion and BoundaryMeshRegion.
- Styles and other specifications for cells are taken to apply to the highlighted elements celli.
Examples
open allclose allBasic Examples (3)Summary of the most common use cases

https://wolfram.com/xid/0bni4ovo5ytv6-2ea9

https://wolfram.com/xid/0bni4ovo5ytv6-tt8crr


https://wolfram.com/xid/0bni4ovo5ytv6-d25fy5

https://wolfram.com/xid/0bni4ovo5ytv6-e5yoki


https://wolfram.com/xid/0bni4ovo5ytv6-f130yi

https://wolfram.com/xid/0bni4ovo5ytv6-k889qy

Scope (7)Survey of the scope of standard use cases
Specification (4)
HighlightMesh works with MeshRegion:

https://wolfram.com/xid/0bni4ovo5ytv6-mex3ex

https://wolfram.com/xid/0bni4ovo5ytv6-z7zs3


https://wolfram.com/xid/0bni4ovo5ytv6-geqigh

https://wolfram.com/xid/0bni4ovo5ytv6-0dqxqg

HighlightMesh works on 2D regions:

https://wolfram.com/xid/0bni4ovo5ytv6-tlf72f

https://wolfram.com/xid/0bni4ovo5ytv6-fj133r


https://wolfram.com/xid/0bni4ovo5ytv6-byz9a7

https://wolfram.com/xid/0bni4ovo5ytv6-hf3fpj

HighlightMesh works with points:

https://wolfram.com/xid/0bni4ovo5ytv6-9ca9h4

https://wolfram.com/xid/0bni4ovo5ytv6-zt88yt


https://wolfram.com/xid/0bni4ovo5ytv6-ye00ek


https://wolfram.com/xid/0bni4ovo5ytv6-hmfivx


https://wolfram.com/xid/0bni4ovo5ytv6-bsqjkd


https://wolfram.com/xid/0bni4ovo5ytv6-5g2eky

https://wolfram.com/xid/0bni4ovo5ytv6-r7zghj

A collection of cells with the same dimension:

https://wolfram.com/xid/0bni4ovo5ytv6-yd33u2

All cells with a given cell dimension:

https://wolfram.com/xid/0bni4ovo5ytv6-lugjwh


https://wolfram.com/xid/0bni4ovo5ytv6-qdl89i

Multiple collections of cells:

https://wolfram.com/xid/0bni4ovo5ytv6-ozrawc

Styling and Labeling (3)
Specify the highlighting style of a cell:

https://wolfram.com/xid/0bni4ovo5ytv6-iwsq4p

https://wolfram.com/xid/0bni4ovo5ytv6-d93eix

Label cells with their indices:

https://wolfram.com/xid/0bni4ovo5ytv6-g2jj82

https://wolfram.com/xid/0bni4ovo5ytv6-unh2ov

Specify an annotation for a highlighted cell:

https://wolfram.com/xid/0bni4ovo5ytv6-1sg1z3

https://wolfram.com/xid/0bni4ovo5ytv6-8ob7kg

Options (11)Common values & functionality for each option
MeshCellHighlight (1)
MeshCellHighlight can be used to specify cells to highlight:

https://wolfram.com/xid/0bni4ovo5ytv6-n36m1u

MeshCellLabel (2)
By default, MeshCellLabel of the given region is preserved:

https://wolfram.com/xid/0bni4ovo5ytv6-025uyw

Use MeshCellLabel->labels to specify labels of highlighted cells:

https://wolfram.com/xid/0bni4ovo5ytv6-5841h0

MeshCellMarker (2)
By default, MeshCellMarker of the given region is preserved:

https://wolfram.com/xid/0bni4ovo5ytv6-nxtppu


https://wolfram.com/xid/0bni4ovo5ytv6-9c4mvc

Use MeshCellMarkermarkers to specify labels of highlighted cells:

https://wolfram.com/xid/0bni4ovo5ytv6-guqf8q


https://wolfram.com/xid/0bni4ovo5ytv6-fecxsg

MeshCellShapeFunction (2)
By default, MeshCellShapeFunction of the given region is preserved:

https://wolfram.com/xid/0bni4ovo5ytv6-f3p1rv

Use MeshCellShapeFunctionshapes to specify shape functions of highlighted cells:

https://wolfram.com/xid/0bni4ovo5ytv6-2che4w

MeshCellStyle (2)
MeshCellHighlight is applied after MeshCellStyle:

https://wolfram.com/xid/0bni4ovo5ytv6-pnrm0o

Wrap with Style to style a highlighted cell:

https://wolfram.com/xid/0bni4ovo5ytv6-16963y

Properties & Relations (4)Properties of the function, and connections to other functions
HighlightMesh of a MeshRegion returns a MeshRegion:

https://wolfram.com/xid/0bni4ovo5ytv6-fq5str


https://wolfram.com/xid/0bni4ovo5ytv6-bobk0j

HighlightMesh of a BoundaryMeshRegion returns a BoundaryMeshRegion:

https://wolfram.com/xid/0bni4ovo5ytv6-bxrc3n


https://wolfram.com/xid/0bni4ovo5ytv6-kux9cp

AnnotationValue can be used to set properties directly:

https://wolfram.com/xid/0bni4ovo5ytv6-b9iybk

Options can be used to set properties during the creation of a MeshRegion:

https://wolfram.com/xid/0bni4ovo5ytv6-iqopvv

Wolfram Research (2014), HighlightMesh, Wolfram Language function, https://reference.wolfram.com/language/ref/HighlightMesh.html (updated 2015).
Text
Wolfram Research (2014), HighlightMesh, Wolfram Language function, https://reference.wolfram.com/language/ref/HighlightMesh.html (updated 2015).
Wolfram Research (2014), HighlightMesh, Wolfram Language function, https://reference.wolfram.com/language/ref/HighlightMesh.html (updated 2015).
CMS
Wolfram Language. 2014. "HighlightMesh." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2015. https://reference.wolfram.com/language/ref/HighlightMesh.html.
Wolfram Language. 2014. "HighlightMesh." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2015. https://reference.wolfram.com/language/ref/HighlightMesh.html.
APA
Wolfram Language. (2014). HighlightMesh. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/HighlightMesh.html
Wolfram Language. (2014). HighlightMesh. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/HighlightMesh.html
BibTeX
@misc{reference.wolfram_2025_highlightmesh, author="Wolfram Research", title="{HighlightMesh}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/HighlightMesh.html}", note=[Accessed: 16-April-2025
]}
BibLaTeX
@online{reference.wolfram_2025_highlightmesh, organization={Wolfram Research}, title={HighlightMesh}, year={2015}, url={https://reference.wolfram.com/language/ref/HighlightMesh.html}, note=[Accessed: 16-April-2025
]}