RegionUnion
RegionUnion[reg1,reg2,…]
gives the union of the regions reg1, reg2, ….
Details and Options
- A point p belongs to RegionUnion[reg1,reg2,…] if it belongs to some regi.
- RegionUnion takes the same options as Region.
Examples
open allclose allBasic Examples (2)
Scope (12)
Special Regions (6)
For some regions, the union is computed explicitly:
A union of Line regions:
A union of Polygon regions:
A union of two Disk regions:
A union of two Cuboid regions:
A union of regions with different RegionDimension:
Formula Regions (2)
A union of ImplicitRegion objects is an ImplicitRegion:
A union of ParametricRegion objects:
Mesh Regions (2)
A union of BoundaryMeshRegion objects is a BoundaryMeshRegion:
A union of full-dimensional MeshRegion objects is a MeshRegion:
Derived Regions (2)
Applications (6)
Union of all South America countries to get the map:
Define a stadium as the union of disks and a rectangle:
The area is the sum of disk and quadrilateral areas:
Define a capsule as the union of balls and a cylinder:
The volume is the sum of the ball and cylinder volumes:
By taking a RegionUnion of many disks, dilation of a mesh can be approximated:
Create disks of the dilation radius around the mesh boundary:
Then simply take the union of all disks plus the original mesh:
By removing a RegionUnion of many disks, erosion of a mesh can be approximated:
Create disks of the erosion radius around the mesh boundary:
Then subtract the union of the disks from the original mesh:
Properties & Relations (5)
A point p belongs to RegionUnion[reg1,reg2,…] if it belongs to some regi:
Use RegionMember to test membership:
RegionUnion is a Boolean combination Or of regions:
RegionSymmetricDifference can be found using RegionUnion and RegionDifference:
The RegionDimension of a union is the max of all input dimensions:
If two regions are disjoint, the RegionMeasure of their union is a sum:
If they overlap, you must subtract the measure of the RegionIntersection:
Possible Issues (2)
RegionUnion is defined only for regions with the same RegionEmbeddingDimension:
RegionUnion may include overlapping lower-dimensional components:
Text
Wolfram Research (2014), RegionUnion, Wolfram Language function, https://reference.wolfram.com/language/ref/RegionUnion.html (updated 2017).
CMS
Wolfram Language. 2014. "RegionUnion." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2017. https://reference.wolfram.com/language/ref/RegionUnion.html.
APA
Wolfram Language. (2014). RegionUnion. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/RegionUnion.html