new icn messageflickr-free-ic3d pan white
5 Tori / 5個の輪環(りんかん) | by TANAKA Juuyoh (田中十洋)
Back to group

5 Tori / 5個の輪環(りんかん)

(* === Following code of Mathematica 8 generates this image. === *)

 

a = 16; (* center hole size of a torus *)

b1 = 6;(* the number of angles *)

b2 = 4;(* the number of waves *)

b3 = 1; (* the number of knots *)

c = -12; (* distance from the center of rotation *)

d = 5; (* the number of tori *)

h1 = 3; (* width of a torus *)

h2 = 3; (* width of a torus *)

h3 = 2;(* height of a torus *)

SetOptions[ParametricPlot3D, PlotRange -> Full, Mesh -> None,

Boxed -> False, Axes -> None, PlotPoints -> 500, ImageSize -> 3000,

Background -> RGBColor[{220, 250, 200}/255],

PlotStyle -> Directive[Specularity[White, 30], Texture[Import["D:/tmp/63.jpg"]]],

TextureCoordinateFunction -> ({#4 + Pi, #5 + 2 Pi } &), Lighting -> "Neutral"];

 

f[v_] := Sin[2 Sin[Sin[Sin[v]]]];

x = (a - h1 Cos[t] + h2 f[b1 s]) Cos[b3 (s + Pi/(2 b1))];

y = (a - h1 Cos[t] + h2 f[b1 s]) Sin[b3 (s + Pi/(2 b1))];

z = a - h3 (Cos[t] + f[b2 t]) + c;

rm = Table[{x, y, z}.RotationMatrix[2 i Pi/d, {1, 0, 0}], {i, d}];

 

ParametricPlot3D[rm, {t, 0, 2 Pi}, {s, 0, 2 Pi}]

 

(*---

The Texture

Another shapes and colors

*)

  

2,477 views
2 faves
1 comment
Uploaded on April 21, 2012