MeshCellLabel

MeshCellLabel
is an option to MeshRegion and BoundaryMeshRegion that specifies labels and placements for different mesh cells.

DetailsDetails

  • MeshCellLabel->{cellspec1->label1,} specifies that the mesh cells indicated by should have .
  • The following labels have special meaning:
  • Noneno label
    "Cell"use mesh cell
    "CellIndex"use mesh cell index for dimension d
    "Index"use index i from mesh cell index
    "Marker"use mesh cell marker
  • 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.

ExamplesExamplesopen allclose all

Basic Examples  (4)Basic Examples  (4)

Label the 0D cells:

In[1]:=
Click for copyable input
Out[1]=

Label the 1D cells:

In[2]:=
Click for copyable input
Out[2]=

Label the 0D cells:

In[1]:=
Click for copyable input
Out[1]=

Label the 1D cells:

In[2]:=
Click for copyable input
Out[2]=

Label the 0D cells:

In[1]:=
Click for copyable input
Out[1]=

Label the 1D cells:

In[2]:=
Click for copyable input
Out[2]=

Label the 2D cells:

In[3]:=
Click for copyable input
Out[3]=

Label 0D cells:

In[1]:=
Click for copyable input
Out[1]=

Label 1D cells:

In[2]:=
Click for copyable input
Out[2]=
Introduced in 2014
(10.0)