# RegionSymmetricDifference

RegionSymmetricDifference[reg1,reg2,]

represents the symmetric difference of the regions reg1, reg2, .

# Details and Options # Examples

open allclose all

## Basic Examples(2)

Symmetric difference of two disks:

Visualize it:

Symmetric difference of two MeshRegion objects:

## Scope(10)

### Special Regions(4)

A symmetric difference of Line regions:

Visualize it:

A symmetric difference of Polygon regions:

Visualize it:

A symmetric difference of two Cuboid regions:

A symmetric difference of regions with different RegionDimension:

Visualize it:

### Formula Regions(2)

A symmetric difference of ImplicitRegion objects is an ImplicitRegion:

2D:

3D:

nD:

A symmetric difference of ParametricRegion objects:

Visualize it:

### Mesh Regions(2)

A symmetric difference of BoundaryMeshRegion objects is a BoundaryMeshRegion:

2D:

3D:

A symmetric difference of full-dimensional MeshRegion objects is a MeshRegion:

2D:

3D:

### Derived Regions(2)

A symmetric difference of BooleanRegion objects:

Visualize it:

A symmetric difference of TransformedRegion objects:

Visualize it:

## Applications(1)

Symmetric difference of regions:

## Properties & Relations(5)

A point p belongs to RegionSymmetricDifference[reg1,reg2] if it belongs to an odd number of regi:

Use RegionMember to test membership:

RegionSymmetricDifference is a Boolean combination Xor of regions:

RegionSymmetricDifference can be found using RegionUnion and RegionDifference:

The RegionDimension of a symmetric difference is at most the max of the input dimensions:

It can be less, however:

This symmetric difference is two lines, and thus has dimension 1:

The RegionMeasure of a symmetric difference obeys a simple formula:

Simply subtract twice the measure of the intersection from the sum of the input measures:

## Possible Issues(1)

Symmetric difference is defined only for regions with the same RegionEmbeddingDimension: ## Neat Examples(1)

The symmetric difference of two spiral polygons: