MeshCellHighlight

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 allclose all

Basic Examples  (3)

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:

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:

Or by the cell itself:

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:

Introduced in 2015
 (10.2)