MeshCellIndex

MeshCellIndex[mreg,d]

gives the cell indices for cells of dimension d in the mesh region mreg.

MeshCellIndex[mreg,cellspec]

gives the cell indices for the cells specified by cellspec.

Details

  • MeshCellIndex is often used to get the cell index {d,i} from a symbolic cell h[{i1,}].
  • The cell indices returned have the form {d,i}, where d is dimension and i a positive integer.
  • The mesh region mreg can be either MeshRegion or BoundaryMeshRegion.
  • The cell specification cellspec follows the standard form described for MeshRegion and BoundaryMeshRegion.
  • MeshCellCount can be used to find the maximum number of cell indices for each dimension.

Examples

open allclose all

Basic Examples  (1)

Find the cell index for different symbolic cells:

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

The 2D cell indices:

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

The 1D cell indices:

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

The 0D cell indices:

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

Scope  (8)

Properties & Relations  (4)

Possible Issues  (1)

See Also

MeshCells  MeshCellCount  MeshCoordinates  MeshRegion  BoundaryMeshRegion

Introduced in 2014
(10.0)