// MC930 - Trabalho final // Fabio Abreu Hashimoto RA 970640 // Predio do Imecc #include "colors.inc" #declare centro = < -2, 0, 0 >; // CÂMERA camera { location <20, 0, 4> sky z look_at centro // rotate z*(-2) } // ILUMINAÇÃO light_source { < 100, 0, 100 > color White } // Blocos Principais #declare bloco_f1 = box { <-4,-2,-2>, <0,2,2.4> pigment { color Gray } } #declare faixasv_f1 = union { #declare n=0; #while (n < 3) // 3 faixas vermelhas box { <0,-2,-1.5+(n*1)>, <0.1,2,-1.0+(n*1)> texture { pigment { color Red } } } #declare n = n+1; #end } #declare faixasp_f1 = union { #declare n=0; #while (n < 3) // 3 faixas brancas box { <0,-2,-1.0+(n*1)>, <0.1,2,-0.5+(n*1)> texture { pigment { color rgb <0.98,0.98,0.98> } finish { reflection .85 } } } #declare n = n+1; #end } #declare bloco_f = union { object { bloco_f1 } object { faixasv_f1 } object { faixasp_f1 } } #declare bloco_f2 = box { <-4,-4.4,-2>, <0,-2,2.5> pigment { color Gray } } #declare faixasv_f2 = union { #declare n=0; #while (n < 3) // 3 faixas vermelhas box { <0,-4.4,-1.2+(n*1)>, <0.1,-2,-0.7+(n*1)> pigment { color Red } } #declare n = n+1; #end } #declare faixasp_f2 = union { #declare n=0; #while (n < 3) // 3 faixas brancas box { <0,-4.4,-0.7+(n*1)>, <0.1,-2,-0.2+(n*1)> texture { pigment { color rgb <0.98,0.98,0.98> } finish { reflection .85 } } } #declare n = n+1; #end } #declare bloco_d = union { object { bloco_f2 } object { faixasv_f2 } object { faixasp_f2 } } #declare bloco_e = object { bloco_d translate <0,6.4,0> } #declare bloco_f3 = box { <-4,-6,-2>, <0,-4.4,3> pigment { color Gray } } #declare faixasv_f3 = union { #declare n=0; #while (n < 4) // 4 faixas vermelhas box { <0,-6,-1.8+(n*1)>, <0.1,-4.4,-1.3+(n*1)> pigment { color Red } } #declare n = n+1; #end } #declare faixasp_f3 = union { #declare n=0; #while (n < 4) // 4 faixas brancas box { <0,-6,-1.3+(n*1)>, <0.1,-4.4,-.8+(n*1)> texture { pigment { color rgb <0.98,0.98,0.98> } finish { reflection .85 } } } #declare n = n+1; #end } #declare bloco_d2 = union { object { bloco_f3 } object { faixasv_f3 } object { faixasp_f3 } } #declare bloco_e2 = object { bloco_d2 translate <0,10.4,0> } #declare coluna = box { <-2,-7,-2>, <0,-6,4.5> pigment { color Gray } } #declare f_coluna = box { <0,-6.8,-1.8>, <0.1,-6.1,3> texture { pigment { color rgb <0.98,0.98,0.98> } finish { reflection .85 } } } #declare coluna_e = union { object { coluna } object { f_coluna } } #declare coluna_d = object { coluna_e translate <0,12.2,0> } // blocos laterais #declare lat_f1 = box { <-2,-2,-2>, <2,2,3> pigment { color Gray } } #declare faixaslv_f1 = union { #declare n=0; #while (n < 4) // 4 faixas vermelhas box { <-2.1,-2.1,-1.8+(n*1)>, <2.1,2.1,-1.3+(n*1)> pigment { color Red } } #declare n = n+1; #end } #declare faixaslp_f1 = union { #declare n=0; #while (n < 4) // 4 faixas brancas box { <-2.1,-2.1,-1.3+(n*1)>, <2.1,2.1,-.8+(n*1)> texture { pigment { color rgb <0.98,0.98,0.98> } finish { reflection .85 } } } #declare n = n+1; #end } #declare lat_f = union { object { lat_f1 } object { faixaslv_f1 } object { faixaslp_f1 } } #declare lat1 = object { lat_f rotate z*45 translate <-3.2,-6.5,0> } #declare lat2 = object { lat_f rotate z*(-45) translate <-3.2,6.5,0>} object { bloco_f } object { bloco_d } object { bloco_e } object { bloco_d2 } object { bloco_e2 } object { coluna_e } object { coluna_d } object { lat1 } object { lat2 }