// spin the torus around the X axis, as "clock" goes from 0 to 1 // the torus will rotate one complete 360 degree revolution. // Note that the texture is put on BEFORE we rotate so it rotates too. #include "colors.inc" #include "textures.inc" #include "shapes.inc" camera { location < 11,8,-4> orthographic angle 60 look_at <4,3,5> } light_source { <400,600,-400> rgb <1.5,1.5,1.5> } light_source { <2,3.5,6> color White } /* questa parte e' stata eliminata perche' rallenta il rendering se vuoi puoi rimetterla in esecuzione eliminando questi tre righi, il rigo precedente e il rigo prima del background light_source { <3,3.5,9> color White } light_source { <7,3.5,8> color White } light_source { <4,3.5,4> color White } light_source { <4,3.5,7> color White } light_source { <7.5,2.3,5> rgb <2,2,2> } light_source { <3.15,3.75,3.95> rgb <10,10,10> } */ background { color Gray50 } plane { y,0 pigment { color Green } } // Record : 1 intersection { plane { < 0,-1, 0>, 0 pigment { Red } } plane { <-1, 0, 0>, .1 pigment { Cyan } } plane { < 0, 0,-1>,-3 pigment { White } } plane { < 0, 0, 1>, 3.3 pigment { White } } plane { < .71, 0, .71>, 3.89 pigment { Cyan } } plane { < 0, 1, 0>, 4.5 pigment { Red } } } // Record : 2 intersection { plane { < 0,-1, 0>, 0 pigment { Red } } plane { < 0, 0,-1>,-3.3 pigment { Cyan } } plane { < 1, 0, 0>, .1 pigment { White } } plane { <-1, 0, 0>, .1 pigment { White } } plane { < 0, 0, 1>, 8.7 pigment { Cyan } } plane { < 0, 1, 0>, 4.5 pigment { Red } } } // Record : 3 intersection { plane { < 0,-1, 0>, 0 pigment { Red } } plane { <-1, 0, 0>,-2.3 pigment { Cyan } } plane { < 0, 0,-1>,-10.9 pigment { White } } plane { < 0, 0, 1>, 11.1 pigment { White } } plane { < 1, 0, 0>, 8.7 pigment { Cyan } } plane { < 0, 1, 0>, 4.5 pigment { Red } } } // Record : 4 intersection { plane { < 0,-1, 0>, 0 pigment { Red } } plane { <-.71, 0,-.71>,-3.89 pigment { Cyan } } plane { < 1, 0, 0>, 2.5 pigment { White } } plane { <-1, 0, 0>,-2.2 pigment { White } } plane { < 0, 0, 1>, 4.3 pigment { Cyan } } plane { < 0, 1, 0>, 4.5 pigment { Red } } } // Record : 5 intersection { plane { < 0,-1, 0>, 0 pigment { Red } } plane { < 0, 0,-1>,-6.3 pigment { Cyan } } plane { < 1, 0, 0>, 4.1 pigment { White } } plane { <-1, 0, 0>,-4 pigment { White } } plane { < 0, 0, 1>, 8.7 pigment { Cyan } } plane { < 0, 1, 0>, 3.5 pigment { Red } } } // Record : 6 intersection { plane { < 0,-1, 0>, 0 pigment { Red } } plane { <-.71, 0, .71>,-1.06 pigment { Cyan } } plane { < 0, 0,-1>,-2.5 pigment { White } } plane { < 0, 0, 1>, 2.8 pigment { White } } plane { < .71, 0, .71>, 6.01 pigment { Cyan } } plane { < 0, 1, 0>, 4.5 pigment { Red } } } // Record : 7 intersection { plane { < 0,-1, 0>, 0 pigment { Red } } plane { <-.71, 0,-.71>,-8.49 pigment { Cyan } } plane { < 0, 0,-1>,-6 pigment { White } } plane { < 0, 0, 1>, 6.3 pigment { White } } plane { < 1, 0, 0>, 8.5 pigment { Cyan } } plane { < 0, 1, 0>, 4.5 pigment { Red } } } // Record : 8 intersection { plane { < 0,-1, 0>, 0 pigment { Red } } plane { <-1, 0, 0>,-7.1 pigment { Cyan } } plane { < 0, 0,-1>,-2.6 pigment { White } } plane { < 0, 0, 1>, 2.8 pigment { White } } plane { < 1, 0, 0>, 8 pigment { Cyan } } plane { < 0, 1, 0>, 2.5 pigment { Red } } } // Record : 9 intersection { plane { < 0,-1, 0>, 0 pigment { Red } } plane { < 1, 0, 0>, 7.3 pigment { Cyan } } plane { < 0, 0, 1>, 2.6 pigment { White } } plane { < 0, 0,-1>,-2.4 pigment { White } } plane { <-1, 0, 0>,-6.8 pigment { Cyan } } plane { < 0, 1, 0>, 3.15 pigment { Red } } } // Record : 10 intersection { plane { < 0,-1, 0>, 0 pigment { Red } } plane { < 0, 0, 1>, 5.2 pigment { Cyan } } plane { <-1, 0, 0>,-8 pigment { White } } plane { < 1, 0, 0>, 8.2 pigment { White } } plane { < 0, 0,-1>,-3.3 pigment { Cyan } } plane { < 0, 1, 0>, 2.5 pigment { Red } } } // Record : 11 intersection { plane { < 0,-1, 0>, 0 pigment { Red } } plane { <-1, 0, 0>,-8.2 pigment { Cyan } } plane { < 0, 0,-1>,-9 pigment { White } } plane { < 0, 0, 1>, 9.3 pigment { White } } plane { < .71, 0, .71>, 12.73 pigment { Cyan } } plane { < 0, 1, 0>, 4.5 pigment { Red } } } // Record : 12 intersection { plane { < 0,-1, 0>, 0 pigment { Red } } plane { < 0, 0, 1>, 6 pigment { Cyan } } plane { <-1, 0, 0>,-8.2 pigment { White } } plane { < 1, 0, 0>, 8.4 pigment { White } } plane { < 0, 0,-1>,-5 pigment { Cyan } } plane { < 0, 1,-.1>, 2.89 pigment { Red } } } // Record : 13 intersection { plane { < 0,-1, 0>, 0 pigment { Red } } plane { < 0, 0, 1>, 3.5 pigment { Cyan } } plane { <-1, 0, 0>,-8.2 pigment { White } } plane { < 1, 0, 0>, 8.4 pigment { White } } plane { <-.71, 0,-.71>,-7.64 pigment { Cyan } } plane { <-.09, .99,-.09>, 2.15 pigment { Red } } } // Record : 14 intersection { plane { < 0,-1, 0>, 0 pigment { Red } } plane { < .71, 0, .71>, 7.64 pigment { Cyan } } plane { < 0, 0, 1>, 2.6 pigment { White } } plane { < 0, 0,-1>,-2.4 pigment { White } } plane { <-1, 0, 0>,-7.8 pigment { Cyan } } plane { < 0, 1, 0>, 3.15 pigment { Red } } } // Record : 15 intersection { plane { < 0,-1, 0>, 0 pigment { Red } } plane { <-.71, 0,-.71>,-12.73 pigment { Cyan } } plane { < 1, 0, 0>, 9 pigment { White } } plane { <-1, 0, 0>,-8.7 pigment { White } } plane { < 0, 0, 1>, 11.1 pigment { Cyan } } plane { < 0, 1, 0>, 4.5 pigment { Red } } } difference { // Record : 16 intersection { plane { < 0,-1, 0>, 0 pigment { Red } } plane { <-1, 0, 0>, .1 pigment { Cyan } } plane { < 0, 0,-1>,-8.7 pigment { White } } plane { < 0, 0, 1>, 9 pigment { White } } plane { < .71, 0, .71>, 7.78 pigment { Cyan } } plane { < 0, 1, 0>, 4.5 pigment { Red } } } // Record : 16.5 intersection { plane { < 0,-1, 0>,-.5 pigment { Red } } plane { <-1, 0, 0>,-.7 pigment { Cyan } } plane { < 0, 0,-1>,-8.69 pigment { White } } plane { < 0, 0, 1>, 9.01 pigment { White } } plane { < 1, 0, 0>, 1.7 pigment { Cyan } } plane { < 0, 1, 0>, 3 pigment { Red } } } } difference { // Record : 17.5 intersection { plane { < 0,-1, 0>, 0 pigment { Red } } plane { <-.71, 0,-.71>,-7.78 pigment { Cyan } } plane { < 1, 0, 0>, 2.3 pigment { White } } plane { <-1, 0, 0>,-2 pigment { White } } plane { < 0, 0, 1>, 11.1 pigment { Cyan } } plane { < 0, 1, 0>, 4.5 pigment { Red } } } // Record : 18 intersection { plane { < 0,-1, 0>,-2 pigment { Red } } plane { < 0, 0,-1>,-9.75 pigment { Cyan } } plane { < 1, 0, 0>, 2.31 pigment { White } } plane { <-1, 0, 0>,-1.99 pigment { White } } plane { < 0, 0, 1>, 10.25 pigment { Cyan } } plane { < 0, 1, 0>, 3 pigment { Red } } } } difference { // Record : 19 intersection { plane { < 0,-1, 0>, 0 pigment { Red } } plane { <-1, 0, 0>,-2.5 pigment { Cyan } } plane { < 0, 0,-1>,-4 pigment { White } } plane { < 0, 0, 1>, 4.3 pigment { White } } plane { < 1, 0, 0>, 4 pigment { Cyan } } plane { < 0, 1, 0>, 4 pigment { Red } } } // Record : 19.5 intersection { plane { < 0,-1, 0>,-.5 pigment { Red } } plane { <-1, 0, 0>,-2.65 pigment { Cyan } } plane { < 0, 0,-1>,-3.99 pigment { White } } plane { < 0, 0, 1>, 4.31 pigment { White } } plane { < 1, 0, 0>, 3.85 pigment { Cyan } } plane { < 0, 1, 0>, 3 pigment { Red } } } } difference { // Record : 20.5 intersection { plane { < 0,-1, 0>, 0 pigment { Red } } plane { < 0, 0, 1>, 4.3 pigment { Cyan } } plane { <-1, 0, 0>,-4 pigment { White } } plane { < 1, 0, 0>, 4.3 pigment { White } } plane { < .71, 0,-.71>, 1.06 pigment { Cyan } } plane { < 0, 1, 0>, 4.5 pigment { Red } } } // Record : 21 intersection { plane { < 0,-1, 0>,-1.5 pigment { Red } } plane { < 0, 0, 1>, 3.9 pigment { Cyan } } plane { <-1, 0, 0>,-3.99 pigment { White } } plane { < 1, 0, 0>, 4.31 pigment { White } } plane { < 0, 0,-1>,-2.9 pigment { Cyan } } plane { < 0, 1, 0>, 3 pigment { Red } } } } difference { // Record : 22 intersection { plane { < 0,-1, 0>, 0 pigment { Red } } plane { <-1, 0, 0>,-4 pigment { Cyan } } plane { < 0, 0,-1>,-6.1 pigment { White } } plane { < 0, 0, 1>, 6.3 pigment { White } } plane { < 1, 0, 0>, 5.7 pigment { Cyan } } plane { < 0, 1, 0>, 3.5 pigment { Red } } } // Record : 22.5 intersection { plane { < 0,-1, 0>,-.5 pigment { Red } } plane { <-1, 0, 0>,-4.4 pigment { Cyan } } plane { < 0, 0,-1>,-6.09 pigment { White } } plane { < 0, 0, 1>, 6.31 pigment { White } } plane { < 1, 0, 0>, 5.4 pigment { Cyan } } plane { < 0, 1, 0>, 2.6 pigment { Red } } } } difference { // Record : 23.5 intersection { plane { < 0,-1, 0>, 0 pigment { Red } } plane { <-1, 0, 0>,-2.3 pigment { Cyan } } plane { < 0, 0,-1>,-8.7 pigment { White } } plane { < 0, 0, 1>, 8.8 pigment { White } } plane { < 1, 0, 0>, 5.7 pigment { Cyan } } plane { < 0, 1, 0>, 3.5 pigment { Red } } } // Record : 24 intersection { plane { < 0,-1, 0>,-.5 pigment { Red } } plane { <-1, 0, 0>,-4.4 pigment { Cyan } } plane { < 0, 0,-1>,-8.69 pigment { White } } plane { < 0, 0, 1>, 8.81 pigment { White } } plane { < 1, 0, 0>, 5.4 pigment { Cyan } } plane { < 0, 1, 0>, 2.6 pigment { Red } } } } difference { // Record : 25 intersection { plane { < 0,-1, 0>, 0 pigment { Red } } plane { < 0, 0,-1>,-6.3 pigment { Cyan } } plane { < 1, 0, 0>, 5.9 pigment { White } } plane { <-1, 0, 0>,-5.7 pigment { White } } plane { < 0, 0, 1>, 10.9 pigment { Cyan } } plane { < 0, 1, 0>, 3.5 pigment { Red } } } // Record : 25.5 intersection { plane { < 0,-1, 0>,-.5 pigment { Red } } plane { < 0, 0,-1>,-6.4 pigment { Cyan } } plane { < 1, 0, 0>, 5.91 pigment { White } } plane { <-1, 0, 0>,-5.69 pigment { White } } plane { < 0, 0, 1>, 7.4 pigment { Cyan } } plane { < 0, 1, 0>, 2.6 pigment { Red } } } } difference { // Record : 26.5 intersection { plane { < 0,-1, 0>, 0 pigment { Red } } plane { <-.71, 0,-.71>,-6.01 pigment { Cyan } } plane { < 1, 0, 0>, 6 pigment { White } } plane { <-1, 0, 0>,-5.7 pigment { White } } plane { < .71, 0, .71>, 8.49 pigment { Cyan } } plane { < 0, 1, 0>, 4.5 pigment { Red } } } // Record : 27 intersection { plane { < 0,-1, 0>,-.5 pigment { Red } } plane { < 0, 0,-1>,-4.5 pigment { Cyan } } plane { < 1, 0, 0>, 6.01 pigment { White } } plane { <-1, 0, 0>,-5.69 pigment { White } } plane { < 0, 0, 1>, 5.5 pigment { Cyan } } plane { < 0, 1, 0>, 3 pigment { Red } } } } difference { // Record : 28 intersection { plane { < 0,-1, 0>, 0 pigment { Red } } plane { < 0, 0,-1>,-6.3 pigment { Cyan } } plane { < 1, 0, 0>, 8.5 pigment { White } } plane { <-1, 0, 0>,-8.2 pigment { White } } plane { < 0, 0, 1>, 9 pigment { Cyan } } plane { < 0, 1, 0>, 4 pigment { Red } } } // Record : 28.5 intersection { plane { < 0,-1, 0>,-1.5 pigment { Red } } plane { < 0, 0,-1>,-6.9 pigment { Cyan } } plane { < 1, 0, 0>, 8.51 pigment { White } } plane { <-1, 0, 0>,-8.19 pigment { White } } plane { < 0, 0, 1>, 8.5 pigment { Cyan } } plane { < 0, 1, 0>, 3 pigment { Red } } } } prism { 3.5, 3.75, 15 < .1, 3.3>,< .1, 8.7>,< 2.3, 8.7>,< 2.3, 10.9>,< 8.7, 10.9>,< 8.7, 9.3>,< 8.2, 9.3>,< 8.2, 6.3>,< 5.7, 6.3>,< 5.7, 2.8>,< 4.3, 2.8>,< 4.3, 4.3>,< 2.2, 4.3>,< 2.2, 3.3>,< .1, 3.3> pigment { color Cyan } } // Record : 31.5 intersection { plane { < 0, 0, 1>, 6 pigment { Red } } plane { < 1, 0, 0>, 9 pigment { Red } } plane { < 0, 0,-1>,-2 pigment { Red } } plane { <-1, 0, 0>,-6 pigment { Red } } plane { < 0, 1,-.1>, 3.13 pigment { Red } } plane { < 0,-1, .1>,-2.89 pigment { Red } } } prism { .5, .55, 7 < .1, 3.3>,< .1, 8.7>,< 4, 8.7>,< 4, 4.3>,< 2.2, 4.3>,< 2.2, 3.3>,< .1, 3.3> pigment { color Cyan } } prism { .5, .55, 7 < 4.3, 2.8>,< 5.7, 2.8>,< 5.7, 6.1>,< 4, 6.1>,< 4, 4.3>,< 4.3, 4.3>,< 4.3, 2.8> pigment { color Cyan } } prism { .5, .55, 5 < 4.1, 6.3>,< 5.7, 6.3>,< 5.7, 8.7>,< 4.1, 8.7>,< 4.1, 6.3> pigment { color Cyan } } prism { .5, .55, 5 < 2.3, 8.8>,< 5.7, 8.8>,< 5.7, 10.9>,< 2.3, 10.9>,< 2.3, 8.8> pigment { color Cyan } } prism { .5, .55, 7 < 5.9, 6.3>,< 8.2, 6.3>,< 8.2, 9.3>,< 8.7, 9.3>,< 8.7, 10.9>,< 5.9, 10.9>,< 5.9, 6.3> pigment { color Cyan } } prism { .5, .55, 15 < 6, 3>,< 6.8, 3>,< 6.8, 2.6>,< 7.1, 2.6>,< 7.1, 2.8>,< 8, 2.8>,< 8, 2.6>,< 8.2, 2.6>,< 8.2, 3.3>,< 8, 3.3>,< 8, 5.2>,< 8.2, 5.2>,< 8.2, 6>,< 6, 6>,< 6, 3> pigment { color Cyan } }