#include "colors.inc" camera { location <3, 5, 14> look_at <0, 4, 0> } light_source {<20, 20, 20> color 2*White } // x axis cylinder { 0*x, 20*x, .1 pigment {color Red} } // y axis cylinder { 0*y, 20*y, .1 pigment {color Green} } // z axis cylinder { 0*z, 20*z, .1 pigment {color Blue} } #declare cup = lathe { cubic_spline 13, <0 , 0.0>, <2.5, 0.0>, <2.5, 0.5>, <0.5, 0.6>, <0.5, 3.5>, <2.0, 4.5>, <3.0, 6.5>, <3.0, 8.0>, <2.5, 8.0>, <2.5, 6.5>, <1.8, 5.0>, <0.0, 4.0>, <0.0, 4.0> pigment { rgb <.4,.3,1> } finish { ambient .3} } // rotate around origin /*#declare Count=0; #while (Count < 8) object{ cup scale .5 rotate Count*45*z } #declare Count=Count+1; #end */ // rotate around z axis at y = 4 #declare Count=0; #while (Count < 8) object{ cup scale .5 transform { translate 4*y inverse } rotate Count*45*z translate 4*y } #declare Count=Count+1; #end