Wolfram Language

Core Geometry

Bounding Regions

Version 11 provides bounding regions for points and meshes in any dimension for display, spatial query, or spatial indexing purposes.

In[1]:=
Click for copyable input
mesh = ExampleData[{"Geometry3D", "SpaceShuttle"}, "Region"]
Out[1]=

Find the minimum volume ball that encapsulates the mesh.

In[2]:=
Click for copyable input
BoundingRegion[mesh, "MinBall"]
Out[2]=

Showcase the mesh within various bounding regions.

show complete Wolfram Language input
In[3]:=
Click for copyable input
showMeshGrid[mesh_, names_] := Grid[Partition[ Framed[Show[{mesh, Graphics3D[{Opacity[.5], BoundingRegion[mesh, #]}]}, PlotLabel -> #, PlotRange -> {{-8, 10}, {-8, 8}, {-6, 10}}, Method -> {"ShrinkWrap" -> False}], RoundingRadius -> 10, Background -> Lighter[Gray, 0.9], FrameMargins -> 10, FrameStyle -> GrayLevel[0.5]] & /@ names, 2, 2, 1]]
In[4]:=
Click for copyable input
showMeshGrid[mesh, {"MinCuboid", "MinBall", "FastCylinder", "FastCapsule"}]
Out[4]=

Related Examples

de es fr ja ko pt-br ru zh