Keywords: mathematica 3d cg parametricplot3d texture torus 輪環 りんかん ドーナツ どーなつ 五芒星 ごぼうせい 五光星 ごこうせい 五稜星 ごりょうせい geometric sculpture geometricsculpture shape geometry sculpture mapping テクスチャ マッピング 模様 もよう abstract 抽象 ちゅうしょう アブストラクト design pattern デザイン パターン graphic グラフィック グラフィクス structure 意匠 構造 symmetry 対称性 たいしょうせい シンメトリー 対称 たいしょう black background plant flower serene indoor frames = ParallelTable[Module[{}, a = 3; (* center hole size of a torus *) b = 5; (* hexa-torus *) c = 0; (* distance from the center of rotation *) d = 5; (* number of torus *) SetOptions[ParametricPlot3D, PlotRange -> 1.8 a, SphericalRegion -> True, Mesh -> None, Boxed -> False, Axes -> None, Background -> Darker[Green, 0.8], ViewVector -> vv, PlotPoints -> 200, PlotStyle -> Directive[Specularity[White, 30], Texture[ExampleData[{"ColorTexture", "BerriesPattern"}]]], TextureCoordinateFunction -> ({#4, #5} &), Lighting -> "Neutral"]; f[v_] := Sin[2 Sin[Sin[Sin[v]]]]; x = (a - Cos[t] - f[b s]) Cos[s] + c; y = Sin[t] + c; z = (a - Cos[t] - f[b s]) Sin[s] + c; rm = Table[{x, y, z}.RotationMatrix[2 i Pi/d, {1, 0, 0}], {i, d}]; ParametricPlot3D[rm, {t, 0, 2 Pi}, {s, 0, 2 Pi}] ], {vv, Table[{{5 a Cos[\[Theta]], 5 a Sin[\[Theta]], 10 a Sin[\[Theta]/2]}, {0, 0, 0}}, {\[Theta], 0, 4 Pi, Pi/30}]}]; Export["E:/tmp/Torus-179.avi", frames] frames = ParallelTable[Module[{}, a = 3; (* center hole size of a torus *) b = 5; (* hexa-torus *) c = 0; (* distance from the center of rotation *) d = 5; (* number of torus *) SetOptions[ParametricPlot3D, PlotRange -> 1.8 a, SphericalRegion -> True, Mesh -> None, Boxed -> False, Axes -> None, Background -> Darker[Green, 0.8], ViewVector -> vv, PlotPoints -> 200, PlotStyle -> Directive[Specularity[White, 30], Texture[ExampleData[{"ColorTexture", "BerriesPattern"}]]], TextureCoordinateFunction -> ({#4, #5} &), Lighting -> "Neutral"]; f[v_] := Sin[2 Sin[Sin[Sin[v]]]]; x = (a - Cos[t] - f[b s]) Cos[s] + c; y = Sin[t] + c; z = (a - Cos[t] - f[b s]) Sin[s] + c; rm = Table[{x, y, z}.RotationMatrix[2 i Pi/d, {1, 0, 0}], {i, d}]; ParametricPlot3D[rm, {t, 0, 2 Pi}, {s, 0, 2 Pi}] ], {vv, Table[{{5 a Cos[\[Theta]], 5 a Sin[\[Theta]], 10 a Sin[\[Theta]/2]}, {0, 0, 0}}, {\[Theta], 0, 4 Pi, Pi/30}]}]; Export["E:/tmp/Torus-179.avi", frames] |