WOLFRAM

HighlightMesh[mr,{cellspec1,cellspec2,}]

highlights the cells specified by cellspeci in the mesh region mr.

HighlightMesh[mr,{,wj[cellspecj],}]

highlights using the symbolic wrappers wj.

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 all

Basic Examples  (3)Summary of the most common use cases

Highlight points of a mesh:

Out[2]=2

Highlight edges of a mesh:

Out[2]=2

Highlight a face of a mesh:

Out[2]=2

Scope  (7)Survey of the scope of standard use cases

Specification  (4)

HighlightMesh works with MeshRegion:

Out[2]=2

BoundaryMeshRegion:

Out[4]=4

HighlightMesh works on 2D regions:

Out[2]=2

3D regions:

Out[4]=4

HighlightMesh works with points:

Out[2]=2

Edges:

Out[3]=3

Faces:

Out[4]=4

Patterns:

Out[5]=5

Highlight a specified cell:

Out[2]=2

A collection of cells with the same dimension:

Out[3]=3

All cells with a given cell dimension:

Out[4]=4

A collection of cells:

Out[5]=5

Multiple collections of cells:

Out[6]=6

Styling and Labeling  (3)

Specify the highlighting style of a cell:

Out[2]=2

Label cells with their indices:

Out[2]=2

Specify an annotation for a highlighted cell:

Out[2]=2

Options  (11)Common values & functionality for each option

MeshCellHighlight  (1)

MeshCellHighlight can be used to specify cells to highlight:

Out[1]=1

MeshCellLabel  (2)

By default, MeshCellLabel of the given region is preserved:

Out[1]=1

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

Out[1]=1

MeshCellMarker  (2)

By default, MeshCellMarker of the given region is preserved:

Out[1]=1
Out[2]=2

Use MeshCellMarkermarkers to specify labels of highlighted cells:

Out[1]=1
Out[2]=2

MeshCellShapeFunction  (2)

By default, MeshCellShapeFunction of the given region is preserved:

Out[1]=1

Use MeshCellShapeFunctionshapes to specify shape functions of highlighted cells:

Out[1]=1

MeshCellStyle  (2)

MeshCellHighlight is applied after MeshCellStyle:

Out[1]=1

Wrap with Style to style a highlighted cell:

Out[1]=1

PlotTheme  (2)

Use a theme with grid lines and a legend:

Out[1]=1

Use a theme to draw a wireframe:

Out[1]=1

Properties & Relations  (4)Properties of the function, and connections to other functions

HighlightMesh of a MeshRegion returns a MeshRegion:

Out[1]=1
Out[2]=2

HighlightMesh of a BoundaryMeshRegion returns a BoundaryMeshRegion:

Out[1]=1
Out[2]=2

AnnotationValue can be used to set properties directly:

Out[1]=1

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

Out[1]=1
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).

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 ]}

@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 ]}

@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 ]}