# BooleanRegion

BooleanRegion[bfunc,{reg1,reg2,}]

represents the Boolean combination bfunc of regions reg1, reg2, .

# Details and Options

• A point p belongs to BooleanRegion[bfunc,{reg1,reg2,}] if bfunc[preg1,preg2,] is True.
• For BoundaryMeshRegion regi, BooleanRegion represents the smallest BoundaryMeshRegion that contains the Boolean combination of regions regi.
• For MeshRegion regi, BooleanRegion gives the smallest MeshRegion that contains the Boolean combination of regions regi.
• The following functions are equivalent:
•  RegionIntersection[reg1,reg2,…] BooleanRegion[And, {reg1,reg2,…}] RegionUnion[reg1,reg2,…] BooleanRegion[Or, {reg1,reg2,…}] RegionDifference[reg1,reg2] BooleanRegion[And[#1,Not[#2]]&, {reg1,reg2}] RegionSymmetricDifference[reg1,…] BooleanRegion[Xor, {reg1,…}]
• BooleanRegion takes the same options as Region.

# Examples

open allclose all

## Basic Examples(2)

The Boolean Xor of two disks:

 In[1]:=

Visualize it:

 In[2]:=
 Out[2]=

A Boolean function applied to MeshRegion objects:

 In[1]:=
 Out[1]=