I would like to define a region consisting of a polygon with eight holes in it. This is essentially a stamped piece of metal with eight holes.
a01 = Disk[{-0.5, 1},0.1];
a02 = Disk[{-1.5, 1},0.1];
a03 = Disk[{-2.5, 1},0.1];
a04 = Disk[{-3.5, 1},0.1];
a05 = Disk[{-4.5, 1},0.1];
a06 = Disk[{-5.5, 1},0.1];
a07 = Disk[{-6.5, 1},0.1];
a08 = Disk[{-7.5, 1},0.1];
aRegion = RegionUnion[ a01,
a02,
a03,
a04,
a05,
a06,
a07,
a08 ];
bRegion = Polygon[ {{-12.5,6}, {12.5, 6}, {6.5, 0}, {-6.5, 0}} ];
\[CapitalOmega] = Region @ RegionDifference[aRegion, bRegion]
The aRegion
is a series of eight holes.
The bRegion
is a simple polygon.
I am trying to create a polygon with eight holes. The result of the RegionDifference
is shown below.
Note that if I swap the parameters in the call to RegionDifference
, I get the bRegion
polygon without holes.
What would be the correct way to define a region that is essentially the bRegion
polygon minus the aRegion
holes?