RegionBounds
RegionBounds[reg]
gives the bounds for the region reg.
RegionBounds[reg,"type"]
gives region bounds of the specified "type".
Details and Options
- RegionBounds is also known as bounding box and bounding volume.
- RegionBounds returns a list {{xmin,xmax},{ymin,ymax},…} of length equal to RegionEmbeddingDimension[reg].
- For an unbounded region, one or several of the coordinate ranges can contain Infinity.
- The following region range "type" specifications can be given:
-
"Minimal" minimal bounds (default) "Sufficient" sufficient bounds "Finite" finite range of interest, not necessarily bounding
Examples
open allclose allBasic Examples (3)
Scope (23)
Basic Uses (3)
Special Regions (7)
Formula Regions (3)
A union of two disks as an ImplicitRegion:
A union of two cylinders as an ImplicitRegion:
A rational parametrization of a disk represented as a ParametricRegion:
Mesh Regions (4)
Derived Regions (4)
RegionIntersection of two regions:
RegionUnion of mixed-dimensional regions:
Geographic Regions (2)
Polygons with GeoPosition:
The boundary of a polygon with GeoGridPosition:
Applications (5)
Find a bounding Sphere to a region's bounding box:
Compute corner points of bounding box:
Find a bounding Ellipsoid to a region's bounding box:
Compute a bounding ellipsoid to the bounding box:
Check for possible region inclusion by checking if bounding boxes overlap:
Compute bounds for each region:
For each dimension, check if bounds intersect:
Bounding boxes overlap if and only if bounds in every dimension overlap:
Create a fast membership rejection test:
Create a region member function:
Create a member function for the region's bounding box:
Use region member function to select member points after filtering with bounding box member function:
Compare the timing of only using the region member function:
Both approaches return the same member points:
Fit an oriented bounding box of least area to a region:
Find the transform for each edge of the region's convex hull that aligns it with the axis:
Compute oriented bounding boxes aligned with each edge of the convex hull:
Find the transform that will orient the bounding box with the smallest area to the region:
Properties & Relations (7)
The range is finite for bounded regions:
The range is infinite for unbounded regions:
RegionBounds may be used as input to DiscretizeRegion:
Double the default DiscretizeRegion bounding range:
RegionBounds may be used as input to VoronoiMesh:
VoronoiMesh at varying bounding ranges:
RegionBounds may be used to specify a PlotRange to DiscretizeGraphics:
VoronoiMesh at varying bounding ranges:
Transpose a 2D region's bounds to get coordinates for Rectangle:
Transpose a 3D region's bounds to get coordinates for Cuboid:
Region bounds may be passed directly into UniformDistribution:
Text
Wolfram Research (2014), RegionBounds, Wolfram Language function, https://reference.wolfram.com/language/ref/RegionBounds.html.
CMS
Wolfram Language. 2014. "RegionBounds." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/RegionBounds.html.
APA
Wolfram Language. (2014). RegionBounds. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/RegionBounds.html