// Last edited on 2007-07-22 22:10:12 by stolfi background{ color rgb < 0.75, 0.80, 0.85 > } #declare raio = 2.000; #declare Vermelho = texture { pigment { color rgb < 1, 0, 0 > } finish { diffuse 0.8 specular 0.3 roughness 0.005 ambient 0.2 } } #declare Verde = texture { pigment { color rgbf < 0, 1, 0, 0> } finish { diffuse 0.8 specular 0.3 roughness 0.005 ambient 0.2 } } #declare Azul = texture { pigment { color rgb < 0, 0, 1 > } finish { diffuse 0.8 specular 0.3 roughness 0.005 ambient 0.2 } } #declare Amarelo = texture { pigment { color rgb < 1, 1, 0> } finish { diffuse 0.8 specular 0.3 roughness 0.005 ambient 0.2 } } #declare Roxo = texture { pigment { color rgb < 0.5, 0, 1> } finish { diffuse 0.8 specular 0.3 roughness 0.005 ambient 0.2 } } #declare parede = box { <-1.2, -0.5, 0>, <-0.8, 0.5, 3.5> texture {Amarelo} } #declare base = cylinder { <0, 0, 0>, <0, 0, 0.5>, 1 texture {Vermelho} } #declare buraco_base = cylinder { <0, 0, 0.3>, <0, 0, 0.6>, 0.5 texture {Azul} } #declare topo = cylinder { <0, 0, 3>, <0, 0, 3.5>, 1 texture {Azul} } #declare haste = cylinder { <0, 0, 3>, <0, 0, 1.5>, 0.1 texture {Roxo} } #declare mexedor = sphere { <0, 0, 1.2>, 0.3 texture {Verde} } #declare lado1 = box { <0.3, -0.3, 0.9>, <-0.3, -0.1, 1.5> texture {Verde} } #declare lado2 = box { <0.3, 0.1, 0.9>, <-0.3, 0.3, 1.5> texture {Verde} } #declare furo = cylinder { <0, -0.3, 1.2>, <0, 0.3, 1.2>, 0.2 texture {Verde} } #declare xicara1 = sphere { <0, 2.5, 0.5>, 0.5 texture {Roxo} } #declare xicara2 = sphere { <0, 2.5, 0.5>, 0.45 texture {Verde} } #declare corte = box { <-0.5, 2, 0.6>, <0.5, 3, 1.1> texture {Verde} } #declare basex = cylinder { <0, 2.5, 0>, <0, 2.5, 0.15>, 0.4 texture {Roxo} } #declare chao = box { <-3, -3, -0.2>, <3, 5, 0> texture {Amarelo} } // Aqui está a cena, finalmente: object {chao} union { difference { object {base} object {buraco_base} } object {parede} object {topo} } object {haste} difference { object {mexedor} object {lado1} object {lado2} object {furo} } union{ difference { object {xicara1} object {xicara2} object {corte} } object {basex} } #include "camlight.inc" camlight(<0,0,0.5>,<10,10,7>,0.50,z,1.0)