MeshCells

MeshCells[mreg,d]
gives the cells of dimension d in the mesh region mreg.

MeshCells[mreg,cellspec]
gives the cells specified by cellspec.

DetailsDetails

ExamplesExamplesopen allclose all

Basic Examples  (3)Basic Examples  (3)

Mesh cells for a MeshRegion in 1D:

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

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

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

The 1D cells:

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

Mesh cells for a MeshRegion in 2D:

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

The 0D cells include all the corner points:

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

The 1D cells include all the edges:

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

The only 2D cell is used as input:

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

Mesh cells for a MeshRegion in 3D:

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

The 0D cells:

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

The 1D cells:

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

The 2D cells:

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