#include "colors.inc" #include "shapes.inc" #include "shapes2.inc" #include "textures.inc" camera { location <0.0, 0.0, -10.0> look_at <0, 0, 0> } // Light source object { light_source { <-500, 400, -2000> color White } } object { light_source { <320, -300, 0> color White } } #declare A = 0.30901800386 #declare B = 0.95105618829 #declare R = 0.02 #declare Pent = object{ union { sphere {,R} sphere {,R rotate <0,0,144>} sphere {,R rotate <0,0,-144>} sphere {,R rotate <0,0,288>} sphere {,R rotate <0,0,-288>} cylinder {,,R} cylinder {,,R rotate <0,0,144>} cylinder {,,R rotate <0,0,288>} cylinder {,,R rotate <0,0,-144>} cylinder {,,R rotate <0,0,-288>} } rotate <0,0,18> } #declare Phi = 2 // 1.6180339887 #declare Foo = object {Pent scale Phi translate <0,0,1>} #declare Foo2 = object {Pent rotate <0,0,180> scale Phi translate <0,0,1>} #declare Bar1 = object {Pent scale Phi rotate <90,0,0> translate <0,1,0>} #declare Bar2 = object {Pent scale Phi rotate <-90,0,0> translate <0,-1,0>} #declare Dodecahedron = union {object {Foo rotate <-26.56505117708, 0, 0>} object {Foo rotate <-26.56505117708, -72, 0>} object {Foo rotate <-26.56505117708, -144, 0>} object {Foo rotate <-26.56505117708, -216, 0>} object {Foo rotate <-26.56505117708, -288, 0>} object {Foo2 rotate <26.56505117708, -36, 0>} object {Foo2 rotate <26.56505117708, -108, 0>} object {Foo2 rotate <26.56505117708, -180, 0>} object {Foo2 rotate <26.56505117708, -252, 0>} object {Foo2 rotate <26.56505117708, -324, 0>} object{Bar1} object{Bar2} } object {Dodecahedron scale 2 texture {Silver_Texture finish{ambient .5}}} object {sphere {<0,0,0>,2} texture {Rust finish{Mirror}}}