// Last edited on DATE TIME by USER // Processed by remove-cam-lights #declare roleta1 = seed(15); #declare limites = 140; #include "style.inc" #include "matriz.inc" #include "suavizar.inc" background{ color rgb < 0.1, 0.1, 0.1 > } #declare LATA = array[4][4] { {<0, -1, -1>, <0, -0.6, 0>, <0, -0.4, 0.5>, <0, 0, 1.5>}, {<3, -1, 0>, <3, -0.6, 0.5>, <3, -0.4, 1.5>, <3, 0, 2>}, {<6, -1, 0>, <6, -0.6, 0.5>, <6, -0.4, 1.5>, <6, 0, 2>}, {<9, -1, -1>, <9, -0.6, 0>, <9, -0.4, 0.5>, <9, 0, 1.5>} }; #declare FRENTE = array[4][4] { {<0, 0, 1.5>, <0, 3, 2.5>, <0, 6, 2.5>, <0, 9, 3>}, {<3, 0, 2>, <3, 3, 3.5>, <3, 6, 3.5>, <3, 9, 3>}, {<6, 0, 2>, <6, 3, 3.5>, <6, 6, 3.5>, <6, 9, 3>}, {<9, 0, 1.5>, <9, 3, 2.5>, <9, 6, 2.5>, <9, 9, 3>} }; #declare VIDRO = array[4][4] { {<0, 9, 3>, <0, 9.3, 5>, <0, 9.6, 8>, <0, 10, 10>}, {<3, 9, 3>, <3, 9.3, 5>, <3, 9.6, 8>, <3, 10, 10>}, {<6, 9, 3>, <6, 9.3, 5>, <6, 9.6, 8>, <6, 10, 10>}, {<9, 9, 3>, <9, 9.3, 5>, <9, 9.6, 8>, <9, 10, 10>} }; #declare CAPO = array[4][4] { {<0, 10, 10>, <0, 13, 10>, <0, 16, 10>, <0, 19, 10>}, {<3, 10, 10>, <3, 13, 10>, <3, 16, 10>, <3, 19, 10>}, {<6, 10, 10>, <6, 13, 10>, <6, 16, 10>, <6, 19, 10>}, {<9, 10, 10>, <9, 13, 10>, <9, 16, 10>, <9, 19, 10>} }; #declare VIDRO_TRAS = array[4][4] { {<0, 19, 10>, <0, 19.3, 8>, <0, 20.6, 4>, <0, 21, 3>}, {<3, 19, 10>, <3, 19.3, 8>, <3, 20.6, 4>, <3, 21, 3>}, {<6, 19, 10>, <6, 19.3, 8>, <6, 20.6, 4>, <6, 21, 3>}, {<9, 19, 10>, <9, 19.3, 8>, <9, 20.6, 4>, <9, 21, 3>} }; #declare TRAS = array[4][4] { {<0, 21, 3>, <0, 21.3, 1>, <0, 22, 1>, <0, 23, 1>}, {<3, 21, 3>, <3, 21.3, 1>, <3, 22, 1>, <3, 23, 1>}, {<6, 21, 3>, <6, 21.3, 1>, <6, 22, 1>, <6, 23, 1>}, {<9, 21, 3>, <9, 21.3, 1>, <9, 22, 1>, <9, 23, 1>} }; #declare VIDRO_R = array[4][4] { {<0, 10, 10>, <0, 13, 10>, <0, 16, 10>, <0, 19, 10>}, {<0, 9, 8>, <0, 9.3, 8>, <0, 9.6, 8>, <0, 10, 8>}, {<0, 9, 5>, <0, 9.3, 5>, <0, 9.6, 5>, <0, 10, 5>}, {<0, 9, 3>, <0, 9.3, 3>, <0, 9.6, 3>, <0, 10, 3>} }; #declare VIDRO_NORMAL = array[4][4] { {<0, 9, 3>, <0, 9.3, 5>, <0, 9.6, 8>, <0, 10, 10>}, {<3, 9, 3>, <3, 9.3, 5>, <3, 9.6, 8>, <3, 10, 10>}, {<6, 9, 3>, <6, 9.3, 5>, <6, 9.6, 8>, <6, 10, 10>}, {<9, 9, 3>, <9, 9.3, 5>, <9, 9.6, 8>, <9, 10, 10>} }; #declare VIDRO_L = array[4][4] { {<9, 9, 3>, <9, 9.3, 3>, <9, 9.6, 3>, <9, 10, 3>}, {<9, 9, 5>, <9, 9.3, 5>, <9, 9.6, 5>, <9, 10, 5>}, {<9, 9, 8>, <9, 9.3, 8>, <9, 9.6, 8>, <9, 10, 8>}, {<9, 10, 10>, <9, 13, 10>, <9, 16, 10>, <9, 19, 10>} }; #include "retalho-simples.inc" #include "eixos.inc" suavizar_retalho(LATA, FRENTE) suavizar_retalho(FRENTE, VIDRO) suavizar_retalho(VIDRO, CAPO) suavizar_retalho(CAPO, VIDRO_TRAS) suavizar_retalho(VIDRO_TRAS, TRAS) union{ retalho(LATA, 0, tx_b1, tx_b4) retalho(CAPO, 0, tx_b1, tx_b4) retalho(VIDRO, 0, tx_b1, tx_b5) retalho(VIDRO, 0, tx_b1, tx_vidro) retalho(FRENTE, 0, tx_b1, tx_b4) retalho(VIDRO_TRAS, 0, tx_b1, tx_b4) retalho(TRAS, 0, tx_b1, tx_b4) } #include "camlight.inc" #declare centro_cena = < 10.00, 10.00, 0.00 >; #declare raio_cena = 30.0; #declare dir_camera = < 4.00, -3.00, 4.00 >; #declare dist_camera = 5*raio_cena; #declare intens_luz = 1.20; camlight(centro_cena, raio_cena, dir_camera, dist_camera , z, intens_luz)