WOLFRAM

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)Summary of the most common use cases

Highlight all 1D cells red and all 0D cells black:

Out[1]=1

Highlight all 2D cells transparent orange, 1D elements red, and 0D elements black:

Out[1]=1

Highlight all 2D cells transparent orange:

Out[1]=1

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

Highlight all 1D cells red and all 0D cells black:

Out[1]=1

Highlight all 2D cells transparent orange, 1D elements red, and 0D elements black:

Out[1]=1

Highlight all 2D cells transparent orange:

Out[1]=1

Individual cells can be highlighted using their cell index:

Out[1]=1

Or by the cell itself:

Out[2]=2

All can be used to specify all cells:

Out[1]=1

By default, all cells are highlighted:

Out[2]=2

Highlight all cells of a given dimension:

Out[1]=1

Specify a list of cell indices to highlight:

Out[1]=1

Highlight cells whose dimensions match a pattern:

Out[1]=1

Highlight cells whose indices match a pattern:

Out[1]=1

Highlight with graphics directives appropriate for the dimension of the components:

Out[1]=1

MeshCellHighlight can be combined with MeshCellShapeFunction:

Out[2]=2
Wolfram Research (2015), MeshCellHighlight, Wolfram Language function, https://reference.wolfram.com/language/ref/MeshCellHighlight.html.
Wolfram Research (2015), MeshCellHighlight, Wolfram Language function, https://reference.wolfram.com/language/ref/MeshCellHighlight.html.

Text

Wolfram Research (2015), MeshCellHighlight, Wolfram Language function, https://reference.wolfram.com/language/ref/MeshCellHighlight.html.

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.

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

Wolfram Language. (2015). MeshCellHighlight. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/MeshCellHighlight.html

BibTeX

@misc{reference.wolfram_2024_meshcellhighlight, author="Wolfram Research", title="{MeshCellHighlight}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/MeshCellHighlight.html}", note=[Accessed: 08-January-2025 ]}

@misc{reference.wolfram_2024_meshcellhighlight, author="Wolfram Research", title="{MeshCellHighlight}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/MeshCellHighlight.html}", note=[Accessed: 08-January-2025 ]}

BibLaTeX

@online{reference.wolfram_2024_meshcellhighlight, organization={Wolfram Research}, title={MeshCellHighlight}, year={2015}, url={https://reference.wolfram.com/language/ref/MeshCellHighlight.html}, note=[Accessed: 08-January-2025 ]}

@online{reference.wolfram_2024_meshcellhighlight, organization={Wolfram Research}, title={MeshCellHighlight}, year={2015}, url={https://reference.wolfram.com/language/ref/MeshCellHighlight.html}, note=[Accessed: 08-January-2025 ]}