//Aluno: Lucas Moreira Vidigal Infante //RA: 073371 background{ color rgb < 1.00, 1.00, 1.00 > } #declare phi = (sqrt(5) - 1)/2; #declare dist = 3; #macro dodecaedro() intersection{ plane { <+1,0,phi>, dist} plane { <-1,0,phi>, dist} plane { <+1,0,-phi>, dist } plane { <-1,0,-phi>, dist } plane { , dist } plane { <-phi,1,0>, dist } plane { , dist } plane { <-phi,-1,0>, dist } plane { <0,phi,1>, dist } plane { <0,-phi,1>, dist } plane { <0,phi,-1>, dist } plane { <0,-phi,-1>, dist} } #end #macro octaedro() intersection{ plane { <+1,+1,+1>, dist} plane { <+1,+1,-1>, dist} plane { <+1,-1,+1>, dist} plane { <-1,+1,+1>, dist} plane { <-1,-1,-1>, dist} plane { <-1,-1,+1>, dist} plane { <-1,+1,-1>, dist} plane { <+1,-1,-1>, dist} } #end #macro icosaedro() intersection{ object{ octaedro() } object{ dodecaedro() scale <1.069,1.069,1.069 > } } #end #macro cubo() intersection{ plane { <0,0,1>, dist} plane { <0,1,0>, dist} plane { <1,0,0>, dist} plane { <-1,0,0>, dist} plane { <0,-1,0>, dist} plane { <0,0,-1>, dist} } #end #macro cubo_octa() intersection{ object{ octaedro() scale< 1.145,1.145,1.145>} object{ cubo() } } #end #declare tx_xadrez = texture{ pigment{ checker color rgb < 0.45, 0.32, 0.60 >, color rgb < 0.5, 0.97, 0.90 > } finish{ diffuse 0.9 ambient 0.1 } scale 2.0 } #declare tx_vidro1 = texture{ pigment{ color rgb < 1, 0, 0 > filter 0.70 } finish{ diffuse 0.03 reflection 0.20 ambient 0.02 specular 0.25 roughness 0.60 } } #declare tx_vidro2 = texture{ pigment{ color rgb < 0, 0, 1 > filter 0.70 } finish{ diffuse 0.03 reflection 0.20 ambient 0.02 specular 0.25 roughness 0.60 } } #declare chao = box{ <-20,-20,-2>, <+20,+20,0> } #include "eixos.inc" union{ object{ cubo_octa() texture{ tx_vidro1 } interior { ior 1.2 }} object{ icosaedro() texture{ tx_vidro2 } interior { ior 1.5 } translate <7,7,0> } object{ chao translate < 0,0,-5 > texture{ tx_xadrez } } } #include "camlight.inc" #declare centro_cena = < 0.00, 7.00 , 0.00 >; #declare raio_cena = 15; #declare dir_camera = <1.5,-0.7,0.85>; #declare dist_camera = 45; #declare intens_luz = 0.80; camlight(centro_cena, raio_cena, dir_camera, dist_camera , z, intens_luz)