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