#include "colors.inc" #include "textures.inc" camera { location <15, 15, -15> look_at <0,0,-5> } light_source { <10, .10, 0> White } light_source { <-10, .10, 0> White } light_source { <.10, 10, 0> White } light_source { <.10, -10, 0> White } light_source { <.10, 0, 10> White } light_source { <.10, 0, -20> White } light_source { <10, 10, -10> White } background { color White} //eixos //cylinder { <50,0,0>, <-50,0,0> , .005 texture{ pigment{Black} }} //cylinder { <0,50,0>, <0,-50,0> , .005 texture{ pigment{Blue} }} //cylinder { <0,0,50>, <0,0,-50> , .005 texture{ pigment{Red} }} #declare caixa_principal= box { <-7.5, -6, -5>,<7.5, 6, 5> texture { pigment{DMFWood4} } } #declare puxador= blob { threshold .65 sphere { <0,0,-1>, 0.5, 1 texture {pigment{Yellow}} } cylinder { <0,0,0>, <0,0,-1> , .2, 1 texture{ pigment{Yellow}}} finish { phong 1 } } //object {puxador} #declare gaveta_frontal= union{ prism { //frente linear_sweep linear_spline -5, -3, 3, < 6.50, -14.00>, < -6.50, -14.00>, < 6.50, -14.00> texture { pigment {DMFWood4} } } prism { // lado linear_sweep linear_spline -5, -3, 3, < 6.50, -14.00>, < 6.50, -5.00>, < 6.50, -14.00> texture { pigment {DMFWood4} } } prism { // lado linear_sweep linear_spline -5, -3, 3, < -6.50, -14.00>, < -6.50, -5.00>, < -6.50, -14.00> texture { pigment {DMFWood4} } } prism { // base linear_sweep linear_spline -5, -5, 5, < 6.50, -14.00>, < -6.50, -14.00>, < -6.50, -5.00> < 6.50, -5.00> < 6.50, -14.00> texture { pigment {DMFWood4} } } } #declare gaveta_direita= union{ prism { //frente linear_sweep linear_spline -2, -0, 3, < 13.50, -4.00>, < 13.50, 4.00>, < 13.50, -4.00> texture { pigment {DMFWood4} } } prism { // lado linear_sweep linear_spline -2, -0, 3, < 7.50, -4.00>, < 13.50, -4.00>, < 7.50, -4.00> texture { pigment {DMFWood4} } } prism { // lado linear_sweep linear_spline -2, -0, 3, < 7.50, 4.00>, < 13.50, 4.00>, < 7.50, 4.00> texture { pigment {DMFWood4} } } prism { // base linear_sweep linear_spline -2, -2, 5, < 7.50, 4.00>, < 13.50, 4.00>, < 13.50, -4.00> < 7.50, -4.00> < 7.50, 4.00> texture { pigment {DMFWood4} } } } #declare buraco= box {<-7,7,-4.5>,<7,4,4.5> texture { pigment{DMFWood4} }} #declare lapis= union{ cylinder{<0,0,-3>,<0,0,3>, 0.3 texture{ pigment{ Blue }}} cone{ <0,0,3>, .3 ,<0,0,3.5>,0 texture{ pigment{ Yellow }}} } #declare borracha= box{<-1,-.5, -2>,<1,.5, 2> texture{ pigment{ White }}} difference{ object{caixa_principal} object{buraco} } object{gaveta_frontal} object{puxador translate <0,-4,-14>} object{gaveta_frontal translate <0,6,8.9>} object{puxador translate <0,2,-5.1>} object{gaveta_direita} object{puxador rotate <0,-90,0> translate <13.5,-1,0>} object{gaveta_direita scale<-1,1,1>} object{puxador rotate <0,90,0> translate <-13.5,-1,0>} object{lapis translate <-4,-4.7,-10>} object{lapis translate <-3,-4.7,-10>} object{lapis translate <-2,-4.7,-10>} object{lapis translate <-1,-4.7,-10>} object{borracha translate <0,4.5,0>}