Keywords: parametricplot3d mathematica cg 3d trianglewave texture program プログラム code コード algorithm コード アルゴリズム geometric sculpture geometricsculpture shape geometry sculpture mapping テクスチャ マッピング 模様 もよう design pattern デザイン パターン graphic グラフィック グラフィクス structure 意匠 構造 symmetry 対称性 たいしょうせい シンメトリー 対称 たいしょう algorithm white background SetOptions[ParametricPlot3D, PlotRange -> Full, Mesh -> None, Boxed -> False, Axes -> None, PlotPoints -> 300, ImageSize -> 3000, PlotStyle -> Directive[Specularity[White, 30], Texture[Import["D:/tmp/862.jpg"]]], TextureCoordinateFunction -> ({#4 + #5, #5/Pi} &), Lighting -> "Neutral"]; a = 6; (* center hole size of a torus *) b = 5; f[v_] := TriangleWave[{-1, 1}, v/(2 Pi)]; g[v_] := TriangleWave[{-1, 1}, v/(2 Pi) + 1/4]; x = (a - f[t] - g[b s]) f[s]; y = g[t]; z = (a - f[t] - g[b s]) g[s]; rot = Table[{x, y, z}.RotationMatrix[2 i Pi /5, {1, 0, 0}], {i, 5}]; ParametricPlot3D[rot, {t, 0, 2 Pi}, {s, 0, 2 Pi}] (* --- The Texture is another color version of this: www.flickr.com/photos/tanaka_juuyoh/5412528282 *) SetOptions[ParametricPlot3D, PlotRange -> Full, Mesh -> None, Boxed -> False, Axes -> None, PlotPoints -> 300, ImageSize -> 3000, PlotStyle -> Directive[Specularity[White, 30], Texture[Import["D:/tmp/862.jpg"]]], TextureCoordinateFunction -> ({#4 + #5, #5/Pi} &), Lighting -> "Neutral"]; a = 6; (* center hole size of a torus *) b = 5; f[v_] := TriangleWave[{-1, 1}, v/(2 Pi)]; g[v_] := TriangleWave[{-1, 1}, v/(2 Pi) + 1/4]; x = (a - f[t] - g[b s]) f[s]; y = g[t]; z = (a - f[t] - g[b s]) g[s]; rot = Table[{x, y, z}.RotationMatrix[2 i Pi /5, {1, 0, 0}], {i, 5}]; ParametricPlot3D[rot, {t, 0, 2 Pi}, {s, 0, 2 Pi}] (* --- The Texture is another color version of this: www.flickr.com/photos/tanaka_juuyoh/5412528282 *) |