// Leandro Brioschi de Oiveira RA 970995 // Trabalho de Laboratorio 2 - 05 - 10 - 2000 MC 930 - Professor Stolfi background{ color rgb < 0.00, 1.00, 1.00 > } light_source { < -3.00, 9.00, -2.00 > color rgb < 1.00, 1.00, 1.00 > } camera { location < -6.50, 6.50, -2.20 > sky < 0.00, 8.00, 0.00 > look_at < -2.80, 3.0, 0.50 > } #declare tinta_A = texture { pigment { color rgb < 1.00, 0.00, 0.00 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare tinta_B = texture { pigment { color rgb < 0.50, 0.50, 0.50 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare tinta_C = texture { pigment { color rgb <0.00, 0.00, 0.00 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare corpo = box { < -2.80, 1.00, 0.50 >, < 2.30, 3.00, 3.00 > texture { tinta_A } } #declare corte_corpo = box { < -2.50, 2.00, 0.00 >, < -1.00, 3.50, 3.50 > texture { tinta_A } } #declare helice = box { < -4.00, 3.30, 1.65 >, < -1.00, 3.40, 1.85 > texture { tinta_B } } #declare rabeta = cylinder { <2.30, 2.00, 1.75> <6.30, 2.00, 1.75> 0.30 texture { tinta_B } } #declare eixo_principal = cylinder { < -1.00, 3.00, 1.75 > < -1.00, 3.30, 1.75 > 0.15 texture { tinta_C } } #declare roda = cylinder { < 1.40, 1.00, 0.50 >, < 1.40, 1.00, 0.80 >, 0.50 texture { tinta_C } } // Aqui está a cena, finalmente: union { difference { object {corpo} object {corte_corpo translate <0, 0, 0> rotate <0, 0, 30> translate <0, 1.74, 0> } } object {helice } object {helice translate <1, 0,-1.75> rotate <0, 120, 0> translate < -1.0 , 0.00, 1.75> } object {helice translate <1, 0,-1.75> rotate <0, -120, 0> translate < -1.0 , 0.00, 1.75> } //object {helice // scale < 0.3, 0.8, 0.3> // translate < 5, 0 , 0> // } //object {helice // translate <1, 0,-1.75> // rotate <0, 120, 0> // translate < -1.0 , 0.00, 1.75> // scale <0.3, 0.8, 0.3> // translate < 5, 0 , 0> // } //object {helice // translate <1, 0,-1.75> // rotate <0, -120, 0> // translate < -1.0 , 0.00, 1.75> // scale <0.3, 0.8, 0.3> // translate < 5, 0 , 0> // } object {rabeta} object {eixo_principal} object {roda translate <0.0, 0.0, -0.05> } object {roda translate < -3.00 , 0.00, -0.05 > } object {roda translate < 0.00 , 0.00, 2.45 > } object {roda translate < -3.00 , 0.00, 2.45 > } }