#include "colors.inc" #include "golds.inc" #include "metals.inc" #include "woods.inc" #include "transforms.inc" #include "shapes.inc" #include "math.inc" #include "glass.inc" #include "finish.inc" #declare Phong_Glossy = finish {phong 1 phong_size 300 reflection 0.13} camera { perspective location <0, 0, -35> look_at <0, 0, 0> right x*image_width/image_height } light_source { <0, 1, 0> color rgb 1.0 } #declare thing = lathe { linear_spline // linear_spline | quadratic_spline | cubic_spline 20, // number of points <4, 4>, <3,4>, <4, 5>, <2, 5>, <2, 7>, <1, 8>, <5, 2>, <2, 1>, <4, 2>, <3, 0>, <1, 1>, <4, 3>, <0, 8>, <3, 5>, <1, 2>, <4, 0>, <3, 1>, <2, 1>, <3, 5>, <2,0> // the list of points texture {T_Glass2 } interior {I_Glass } sturm } plane { y, // unit surface normal, vector points "away from surface" 30 // distance from the origin in the direction of the surface normal hollow on // has an inside pigment? finish {Phong_Glossy} pigment {Green} } plane { y, // unit surface normal, vector points "away from surface" -30 // distance from the origin in the direction of the surface normal hollow on // has an inside pigment? finish {Phong_Glossy} pigment {Blue} } plane { x, // unit surface normal, vector points "away from surface" 30 // distance from the origin in the direction of the surface normal hollow on // has an inside pigment? finish {Phong_Glossy} pigment {Red} } plane { x, // unit surface normal, vector points "away from surface" -30 // distance from the origin in the direction of the surface normal hollow on // has an inside pigment? finish {Phong_Glossy} pigment {Yellow} } object {thing translate <0,-4,0>} object {thing rotate <45,0,0> translate <0,9,0>} object {thing rotate <-45,0,0> translate <0,-12,0>} object {thing rotate <45,-45,0> translate <-15,9,0>} object {thing rotate <45,45,0> translate <15,9,0>} object {thing rotate <-45,45,0> translate <-15,-12,0>} object {thing rotate <-45,-45,0> translate <15,-12,0>} object {thing rotate <0,0,90> translate <-14,0,0>} object {thing rotate <0,0,-90> translate <14,0,0>}