#include "colors.inc" camera { location <1, 2, -10> look_at <1, 1, 0> } light_source { <5, 5, -10> color White} light_source { <-5, 5, -10> color White} #declare table = union { box { <0, 1, 0>, // Near lower left corner < 2, 1.1, 1> // Far upper right corner pigment{ SteelBlue } } cylinder { <0.1, 1, 0.1>, // Center of one end <0.1, 0, 0.1>, // Center of other end 0.05 // Radius pigment { MediumForestGreen } } cylinder { <2-.1, 1, 0.1>, // Center of one end <2-.1, 0, 0.1>, // Center of other end 0.05 // Radius pigment{ SteelBlue } } cylinder { <.1, 1, 1-.1>, // Center of one end <.1, 0, 1-.1>, // Center of other end 0.05 // Radius pigment{ SteelBlue } } cylinder { <2-.1, 1, 1.1>, // Center of one end <2-.1, 0, 1.1>, // Center of other end 0.05 // Radius pigment{ Coral } } } // translate and shear the table #declare Count=-2; #while (Count < 3) object{ table matrix < 1, .5*Count, 0, 0, 1, 0, 0, 0, 1, 2*Count, 0, 0> } #declare Count=Count+1; #end