Wolfram言語

主な幾何学的機能

境界領域

バージョン11は,表示,空間クエリ,空間インデックス追加のための,任意次元における点とメッシュの境界領域を提供する.

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

メッシュを包み込む最小体積の球を求める.

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

さまざまな境界領域内のメッシュを示す.

完全なWolfram言語入力を表示する
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]=

関連する例

de en es fr ko pt-br ru zh