MeshCellLabel

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

DetailsDetails

  • The following option settings can be used:
  • Automaticuse automatic setting for label
    Noneuse no 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
    {cellspec1label1,}use for mesh cell
  • The wrapper Labeled[cellspec,label] is equivalent to Property[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.

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 the 0D cells:

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

Label the 1D cells:

In[2]:=
Click for copyable input
Out[2]=
Introduced in 2014
(10.0)
| Updated in 2015
(10.2)
Translate this page: