// Exemplo de arquivo de descricao de cena para POV-ray // Last edited on 2000-09-21 20:06:05 by stolfi #include "colors.inc" #include "textures.inc" #include "woods.inc" background { color Gray25 } //to make the patch easier to see light_source { < 0.00, 80.00, 20.00 > color rgb < 1.00, 1.00, 1.00 > } light_source { <20.0,80,0> color rgb <1,1,1> } camera { location < 0.00, 60.00, 0.00 > right 2* < -1.20, 0.00, 0.00 > up 2* < 0.00, 0.00, 0.90 > sky < 0.00, 0.00, 1.00 > look_at < 0.00, 0.00, 0.00 > } #declare tinta_A = texture { pigment { color rgb <1,1,0.6> } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare tinta_B = texture { pigment { color rgb < 0.7529, 0.8078, 0.6627 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare tex = texture { DMFWood6 } #declare estrutura = difference { box { <-13,-5,-15>, <13,13,15> texture {tinta_A} } box {<-12,-5,-15>,<12,13,-13> texture {tinta_B} } } #declare estrutura = difference { difference { prism { linear_sweep linear_spline 0, // sweep the following shape from here ... 40, // ... up through here 6, // the number of points making up the shape ... <-14,-5>, <-14,13>, <0,17>,<14,13>,<14,-5>,<-14,-5> pigment { color rgb <1,1,0.6> } } prism { linear_sweep linear_spline 39.5, // sweep the following shape from here ... 40.2, // ... up through here 6, // the number of points making up the shape ... <-13,-5>, <-13.0,12.0>, <0,15.8>,<13.0,12>,<13,-5>,<-13,-5> pigment { color rgb <1,1,0.6> } } }//difference prism { linear_sweep linear_spline 39, // sweep the following shape from here ... 40.2, // ... up through here 6, // the number of points making up the shape ... <-12.5,-5>, <-12.5,11.5>, <0,15.3>,<12.5,11.5>,<12.5,-5>,<-12.5,-5> pigment { color rgb <1,1,0.6> } } } #declare porta = union { prism { linear_sweep linear_spline 38.5, // sweep the following shape from here ... 39.2, // ... up through here 5, // the number of points making up the shape ... <-2.3,-2>, <0,-2>, <-0,2>,<-2.3,2>,<-2.3,-2> texture {P_WoodGrain11A } } prism { linear_sweep linear_spline 38.5, // sweep the following shape from here ... 39.2, // ... up through here 5, // the number of points making up the shape ... <2.3,-2>, <0,-2>, <0,2>,<2.3,2>,<2.3,-2> texture {P_WoodGrain11A } } //entre as duas portas... prism { linear_sweep linear_spline 38.5, // sweep the following shape from here ... 39.25, // ... up through here 5, // the number of points making up the shape ... <-0.05,-2>, <0.05,-2>, <0.05,2>,<-0.05,2>,<-0.05,-2> pigment {color Black} } } #declare buraco = //buracos do detalhe cilindrico box{ <-0.40,-1,-0.15>, <0.40,1,0.15> } #declare detalhe_cilindrico = cylinder { <0,40,-5>, <0,40,0.5>, 3 pigment { color rgb <1,1,0.6> } } #declare estrutura = union{ object{estrutura} } //subtraindo os buracos do detalhe cilindrico object {estrutura } object {detalhe_cilindrico}