Keywords: parametricplot3d mathematica 3d cg texture torus トーラス とーらす 輪環 りんかん program プログラム code コード algorithm コード アルゴリズム geometric sculpture geometricsculpture shape geometry sculpture mapping テクスチャ マッピング 模様 もよう design pattern デザイン パターン graphic グラフィック グラフィクス structure 意匠 構造 symmetry 対称性 たいしょうせい シンメトリー 対称 たいしょう algorithm SetOptions[ParametricPlot3D, PlotRange -> Full, Mesh -> None, Boxed -> False, Axes -> None, PlotPoints -> 300, ImageSize -> 3000, PlotStyle -> Directive[Specularity[White, 30], Texture[Import["D:/tmp/861.jpg"]]], TextureCoordinateFunction -> ({#4 + #5, #5/Pi} &), Lighting -> "Neutral"]; a = 4; b = 6; c = 2 b; d = 12; xv = Table[(a - Cos[t] - Sin[b s]) Cos[s + i Pi/c], {i, d}]; y = Sin[t]; zv = Table[(a - Cos[t] - Sin[b s]) Sin[s + i Pi/c], {i, d}]; rot = Table[{xv[[i]], y, zv[[i]]}.RotationMatrix[i Pi/d, IdentityMatrix[3][[1]]], {i, d}]; 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/861.jpg"]]], TextureCoordinateFunction -> ({#4 + #5, #5/Pi} &), Lighting -> "Neutral"]; a = 4; b = 6; c = 2 b; d = 12; xv = Table[(a - Cos[t] - Sin[b s]) Cos[s + i Pi/c], {i, d}]; y = Sin[t]; zv = Table[(a - Cos[t] - Sin[b s]) Sin[s + i Pi/c], {i, d}]; rot = Table[{xv[[i]], y, zv[[i]]}.RotationMatrix[i Pi/d, IdentityMatrix[3][[1]]], {i, d}]; 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 *) |