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 ja pt-br ru zh