MeshCellLabel

MeshCellLabel

is an option to MeshRegion, BoundaryMeshRegion and related functions that specifies labels and placements for mesh cells.

Details

  • The following option settings can be used:
  • Automaticuse automatic setting for label
    Noneuse no label
    "Cell"use mesh cell h[{i1,}]
    "CellIndex"use mesh cell index {d,i} for dimension d
    "Index"use index i from mesh cell index {d,i}
    "Marker"use mesh cell marker
    {cellspec1label1,}use labeli for mesh cell cellspeci
  • The wrapper Labeled[cellspec,label] is equivalent to Annotation[cellspec,MeshCellLabellabel] and can be used when creating mesh regions in functions such as MeshRegion, BoundaryMeshRegion, etc.
  • Placed[label,"Centroid"] can be used to place the label at the centroid of the cell. Placed[label,Tooltip] will place the label in a Tooltip.
  • The cell specification cellspec follows the standard form described for MeshRegion and BoundaryMeshRegion.

Examples

open allclose all

Basic Examples  (4)

Label the 0D cells:

Label the 1D cells:

Label the 0D cells:

Label the 1D cells:

Label the 0D cells:

Label the 1D cells:

Label the 2D cells:

Label the 0D cells:

Label the 1D cells:

Scope  (12)

Label the 0D cells:

Label the 1D cells:

Label the 0D cells:

Label the 1D cells:

Label the 2D cells:

Label the 0D cells:

Label the 1D cells:

Label the 2D cells:

Label the 3D cells:

Label the 0D cells:

Label the 1D cells:

Compare special labels:

Any expression can be used as a label:

Label all cells with tooltips:

By default, labels are placed at the "Centroid":

All can be used to specify all cells:

By default, all cells are labeled:

Label specific vertices and edges of a polygon:

Alternatively, you can specify a head and indices:

Specify a list of cell indices to label:

Label cells whose indices match a pattern:

Label cells whose dimensions match a pattern:

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

Text

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

CMS

Wolfram Language. 2014. "MeshCellLabel." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2015. https://reference.wolfram.com/language/ref/MeshCellLabel.html.

APA

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

BibTeX

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

BibLaTeX

@online{reference.wolfram_2024_meshcelllabel, organization={Wolfram Research}, title={MeshCellLabel}, year={2015}, url={https://reference.wolfram.com/language/ref/MeshCellLabel.html}, note=[Accessed: 22-December-2024 ]}