WLJS LogoWLJS Notebook

RegionDifference

RegionDifference[reg1, reg2] gives the difference of regions (reg1 minus reg2).

Examples

Disk with hole:

RegionDifference[Disk[{0, 0}, 2], Disk[{0, 0}, 1]]

Subtract region:

RegionDifference[Rectangle[], Disk[{0.5, 0.5}, 0.3]]

Please visit the official Wolfram Language Reference for more details.

On this page