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:

Introduced in 2014
 (10.0)
 |
Updated in 2015
 (10.2)