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.

DetailsDetails

  • MeshCellIndex is often used to get the cell index from a symbolic cell .
  • The cell indices returned have the form , 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.

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

Find the cell index for different symbolic cells:

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

The 2D cell indices:

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

The 1D cell indices:

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

The 0D cell indices:

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