HighlightMesh

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)

Highlight points of a mesh:

Highlight edges of a mesh:

Highlight a face of a mesh:

Scope  (7)

Specification  (4)

HighlightMesh works with MeshRegion:

BoundaryMeshRegion:

HighlightMesh works on 2D regions:

3D regions:

HighlightMesh works with points:

Edges:

Faces:

Patterns:

Highlight a specified cell:

A collection of cells with the same dimension:

All cells with a given cell dimension:

A collection of cells:

Multiple collections of cells:

Styling and Labeling  (3)

Specify the highlighting style of a cell:

Label cells with their indices:

Specify an annotation for a highlighted cell:

Options  (11)

MeshCellHighlight  (1)

MeshCellHighlight can be used to specify cells to highlight:

MeshCellLabel  (2)

By default, MeshCellLabel of the given region is preserved:

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

MeshCellMarker  (2)

By default, MeshCellMarker of the given region is preserved:

Use MeshCellMarkermarkers to specify labels of highlighted cells:

MeshCellShapeFunction  (2)

By default, MeshCellShapeFunction of the given region is preserved:

Use MeshCellShapeFunctionshapes to specify shape functions of highlighted cells:

MeshCellStyle  (2)

MeshCellHighlight is applied after MeshCellStyle:

Wrap with Style to style a highlighted cell:

PlotTheme  (2)

Use a theme with grid lines and a legend:

Use a theme to draw a wireframe:

Properties & Relations  (4)

HighlightMesh of a MeshRegion returns a MeshRegion:

HighlightMesh of a BoundaryMeshRegion returns a BoundaryMeshRegion:

AnnotationValue can be used to set properties directly:

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

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).

CMS

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

BibTeX

@misc{reference.wolfram_2024_highlightmesh, author="Wolfram Research", title="{HighlightMesh}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/HighlightMesh.html}", note=[Accessed: 21-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_highlightmesh, organization={Wolfram Research}, title={HighlightMesh}, year={2015}, url={https://reference.wolfram.com/language/ref/HighlightMesh.html}, note=[Accessed: 21-November-2024 ]}