Keywords: mathematica 3d cg parametricplot3d texture torus code program algorithm プログラム コード アルゴリズム 輪環 りんかん ドーナツ どーなつ lissajous リサージュ geometric sculpture geometricsculpture shape geometry sculpture mapping テクスチャ マッピング 模様 もよう abstract 抽象 ちゅうしょう アブストラクト design pattern デザイン パターン graphic グラフィック グラフィクス structure 意匠 構造 symmetry 対称性 たいしょうせい シンメトリー 対称 たいしょう circle round a = 8; (* center hole size of a torus *) b1 = 9; (* number of cross *) b2 = 5; (* number of cross *) c = 0; (* distance from the center of rotation *) d = 1; (* number of torus *) w = 4; (* gap width *) SetOptions[ParametricPlot3D, PlotRange -> Full, Mesh -> None, Boxed -> False, Axes -> None, PlotPoints -> 400, ImageSize -> 3000, Background -> Darker[Green, 0.8], PlotStyle -> Directive[Specularity[White, 90], Texture[Import["D:/tmp/71.jpg"]]], TextureCoordinateFunction -> ({#4 + #5, #5/Pi} &), Lighting -> "Neutral"]; f[v_] := Sin[2 Sin[Sin[Sin[v]]]]; x = (a - Cos[t] + w Sin[b1 s]) Cos[b2 s] + c; y = (a - Cos[t] + w Sin[b1 s]) f[b2 s] + c; z = w Sin[b1 s] + f[t] + c; rm = Table[{x, y, z}.RotationMatrix[2 i Pi/d, {0, 0, 1}], {i, d}]; ParametricPlot3D[rm, {t, 0, 2 Pi}, {s, 0, 2 Pi}] (*--- The Texture *) a = 8; (* center hole size of a torus *) b1 = 9; (* number of cross *) b2 = 5; (* number of cross *) c = 0; (* distance from the center of rotation *) d = 1; (* number of torus *) w = 4; (* gap width *) SetOptions[ParametricPlot3D, PlotRange -> Full, Mesh -> None, Boxed -> False, Axes -> None, PlotPoints -> 400, ImageSize -> 3000, Background -> Darker[Green, 0.8], PlotStyle -> Directive[Specularity[White, 90], Texture[Import["D:/tmp/71.jpg"]]], TextureCoordinateFunction -> ({#4 + #5, #5/Pi} &), Lighting -> "Neutral"]; f[v_] := Sin[2 Sin[Sin[Sin[v]]]]; x = (a - Cos[t] + w Sin[b1 s]) Cos[b2 s] + c; y = (a - Cos[t] + w Sin[b1 s]) f[b2 s] + c; z = w Sin[b1 s] + f[t] + c; rm = Table[{x, y, z}.RotationMatrix[2 i Pi/d, {0, 0, 1}], {i, d}]; ParametricPlot3D[rm, {t, 0, 2 Pi}, {s, 0, 2 Pi}] (*--- The Texture *) |