# MeshCells

MeshCells[mreg,d]

gives the cells of dimension d in the mesh region mreg.

MeshCells[mreg,cellspec]

gives the cells specified by cellspec.

# Details

• MeshCells is often used to get the symbolic cell h[{i1,}] from a cell index {d,i}.
• The cells returned have the form h[{i1,}] where ik are coordinate index indicating point ik in the list of coordinates given by MeshCoordinates.
• 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 cells for each dimension.

# Examples

open allclose all

## Basic Examples(3)

Mesh cells for a MeshRegion in 1D:

 In[1]:=
 Out[1]=

The 0D cells also include the end points of the line:

 In[2]:=
 Out[2]=
 In[2]:=
 Out[2]=

The 1D cells:

 In[3]:=
 Out[3]=

Mesh cells for a MeshRegion in 2D:

 In[1]:=
 Out[1]=

The 0D cells include all the corner points:

 In[2]:=
 Out[2]=
 In[3]:=
 Out[3]=

The 1D cells include all the edges:

 In[4]:=
 Out[4]=
 In[5]:=
 Out[5]=

The only 2D cell is used as input:

 In[6]:=
 Out[6]=

Mesh cells for a MeshRegion in 3D:

 In[1]:=
 Out[1]=

The 0D cells:

 In[2]:=
 Out[2]=
 In[3]:=
 Out[3]=

The 1D cells:

 In[4]:=
 Out[4]=
 In[5]:=
 Out[5]=

The 2D cells:

 In[6]:=
 Out[6]=
 In[7]:=
 Out[7]=

# See Also

Introduced in 2014
(10.0)