// Last edited on 2007-03-31 19:27:25 by stolfi // Felipe Rover RA 016049 - MC930 - TP02 - 21-03-2007 background{ color rgb < 0.75, 0.80, 0.85 > } #declare raio = 2.000; #declare azul = texture { pigment { color rgb < 0.00, 0.00, 1.00 > } finish { diffuse 0.8 specular 0.3 roughness 0.005 ambient 0.2 } } #declare verde = texture { pigment { color rgb < 0.00, 1.00, 0.00 > } finish { diffuse 0.8 specular 0.3 roughness 0.005 ambient 0.2 } } #declare vermelho = texture { pigment { color rgb < 1.00, 0.00, 0.00 > } finish { diffuse 0.8 specular 0.3 roughness 0.005 ambient 0.2 } } #declare bola = sphere { < 0.00, 0.00, 0.00 >, 2.00 texture { vermelho } } #declare furo = cylinder { < -5.00, 0.00, 0.00 >, < +5.00, 0.00, 0.00 >, 0.50 texture { vermelho } } #declare caixa1 = box { < 1.00, 0.00, 5.00 >, < 0.00, 1.00, 0.00 > texture { verde } } #declare caixa2 = box { < 1.00, 0.00, 6.00 >, < 0.00, 10.00, 5.00 > texture { verde } } #declare caixa3 = box { < 1.00, 9.00, 5.00 >, < 0.00, 10.00, 3.00 > texture { verde } } #declare cone2 = cone { < 0.00, 0.00, -5.00 >, 3.00, < 0.00, 0.00, 0.00 >, 2.00 texture { azul } } #declare mexedor = difference { object { bola } object { furo } } // Aqui está a cena, finalmente: object { mexedor translate < 0.00, 9.50, 1.00 > } union { object { caixa1 } object { caixa2 } object { caixa3 } } object { cone2 } #include "camlight.inc" camlight(<0,5,0>,<-7.00,12.00,5.00>,1.2,z,1.0)