// Leandro Brioschi de Oiveira RA 970995 // Trabalho de Laboratorio 1 - 28 - 09 - 2000 MC 930 - Professor Stolfi background{ color rgb < 0.50, 0.40, 0.30 > } light_source { < -3.00, 8.00, 1.00 > color rgb < 1.00, 1.00, 1.00 > } camera { location < -4.00, 4.00, -2.00 > sky < 0.00, 8.00, 0.00 > look_at < 0.00, 2.00, 0.00 > } #declare tinta_A = texture { pigment { color rgb < 0.60, 0.00, 1.00 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare tinta_B = texture { pigment { color rgb < 1.00, 0.80, 0.10 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare tinta_C = texture { pigment { color rgb <0.50, 0.50, 0.50 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare gabinete = box { < 0.00, 0.00, 0.00 >, < 4.00, 2.00, 2.00 > texture { tinta_A } } #declare guarnicao = box { < 0.00, 2.00, 1.90 >, < 4.00, 2.30, 2.00 > texture { tinta_A } } #declare torneira = box { < 1.30, 2.10, 1.90 >, < 1.50, 2.20, 1.00 > texture { tinta_C } } #declare copo = cylinder { < 3.00, 2.00, 1.20 > < 3.00, 2.40, 1.20 > 0.13 texture { tinta_B } } #declare pia = cone { <1.40, 2.20, 1.00>, 0.9 // Center and radius of one end <1.40, 1.50, 1.00>, 0.20 // Center and radius of other end texture { tinta_B } } #declare cano = cylinder { < 1.40, 1.60, 1.00 >, < 1.40, -0.10, 1.00 >, 0.20 texture { tinta_B } } // Aqui está a cena, finalmente: union { object { guarnicao } object { torneira } object { copo } difference { object { gabinete } object { pia } object {cano } } }