Wolfram言語

立体の可視化

カスタム平面

立体のサブサンプリングに使うスライスを方程式で指定する.

完全なWolfram言語入力を表示する
In[1]:=
Click for copyable input
opts = {ColorFunction -> ColorData[{"GreenPinkTones", {-2.5, 2.5}}], ColorFunctionScaling -> False, ClippingStyle -> Automatic, PlotTheme -> "Bare", SphericalRegion -> True, ImageSize -> 500, PlotPoints -> 32};
In[2]:=
Click for copyable input
SliceContourPlot3D[ 1/Sqrt[(1 + x)^2 + (1 + y)^2 + z^2] - 1/ Sqrt[(-1 + x)^2 + (-1 + y)^2 + z^2], {x == -1, x == 1, y == -1, y == 1, z == -1, z == 1}, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, Contours -> Range[-2.5, 2.5, 0.5], Evaluate@opts]
Out[2]=

関連する例

de en es fr ko pt-br ru zh