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