RegionDifference

RegionDifference[reg1,reg2]
represents the region difference of the regions and .

DetailsDetails

ExamplesExamplesopen allclose all

Basic Examples  (3)Basic Examples  (3)

Difference of two disks:

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

Discretize the region to visualize it:

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

Difference of two balls:

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

Difference of two MeshRegion objects:

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