// MC930 - Computacao Grafica // Primeiro exercicio de laboratorio - 28/09/2000 // Luis Arthur Micai Nunes RA: 971106 background { color rgb < 0.00, 0.00, 0.00 > } light_source { <20, 20.00, 8.00 > color rgb <1.00, 1.00, 1.00> } camera { location < 21.00, 18.00, 6.00 > look_at < 13.00, 11.00, 14.00 > } #declare caixa = box { < 10.00, 10.00, 10.00 >, < 14.00, 14.00, 14.00 > texture { pigment { color rgb < 0.00, 0.0, 1.00 > } } } #declare cilindro1 = cylinder { <11,15,10>, <11,15,14>, 1 texture {pigment {color rgb < 0,1,0 > } } } #declare furo1 = cylinder { <11,15,9>, <11,15,15>, 0.5 texture {pigment {color rgb < 0,0,0 > } } } #declare cilindro2 = cylinder { <13,15,10>, <13,15,14>, 1 texture {pigment {color rgb < 0,1,0 > } } } #declare furo2 = cylinder { <13,15,9>, <13,15,15>, 0.5 texture { pigment { color rgb < 0, 0, 0> } } } #declare prisma = prism { linear_sweep linear_spline 8, 14, 4 <15,10>, <18,10>, <16.50,13>,<15,10> rotate <-90,0,0> translate <0,0,25> pigment { color rgb <1,0,0> } } union { object { caixa } difference { object { cilindro1 } object { furo1 } } difference { object { cilindro2 } object { furo2 } } object {prisma} }