// Exemplo de arquivo de descricao de cena para POV-ray // Last edited on 2000-09-21 09:50:30 by stolfi background{ color rgb < 0.5, 0.5, 0.5 > } light_source { // < 10.00, 50.00, 10.00 > < 25.00, 45.00, -25.00 > color rgb < 1.00, 1.00, 1.00 > } camera { location < 25.00,20.00,-20.00 > // right < 2.40, 0.00, 0.00 > // up < 0.00, 0.00, 1.80 > // sky < 0.00, 0.00, 1.00 > look_at < 10.00, 10.00, 10.00 > } #declare bola = sphere { < 10.00, 10.00, 10.00 >, 4.00 pigment {color rgb <1,1,1>} } //#declare furo = // cylinder { // < -2.00, -2.00, -2.00 >, // < +2.00, +2.00, +2.00 >, // 0.50 // texture { tinta_B } // } #declare box1 = box { <6,6,6> <14,10,14> // pigment {color rgb <1,1,1>} } #declare cil1 = cylinder {<10,10,10>, <1,10,10>, 0.2 pigment {color rgb <1,1,0.8>} } #declare cil2 = cylinder {<10,10,10>, <3.5,9,8>, 0.2 pigment {color rgb <1,1,0.8>} } #declare cil3 = cylinder {<10,10,10>, <3.5,9,12>, 0.2 pigment {color rgb <1,1,0.8>} } #declare roda3 = torus { 0.7,0.6 rotate <90,0,0> pigment {color rgb <0,0,0>} translate <3.5,9,7.5> } #declare roda4 = torus { 0.7,0.6 rotate <90,0,0> pigment {color rgb <0,0,0>} translate <3.5,9,12.5> } #declare roda1 = torus { 1.0,0.8 rotate <90,0,0> pigment {color rgb <0,0,0>} translate <10,9.5,8> } #declare roda2 = torus { 1.0,0.8 rotate <90,0,0> pigment {color rgb <0,0,0>} translate <10,9.5,12> } #declare eixo1 = cone { <10,12,10>,0.5 <10,15,10>,0.2 pigment {color rgb <1,1,0.8>} } #declare hel1 = box { <4,14,9.75> <16,14.1,10.25> pigment {color rgb <0.8,0.8,0.8>} translate<-10,-15,-10> rotate <0,45,0> translate <10,15,10> } #declare hel2 = box { <4,14,9.75> <16,14.1,10.25> pigment {color rgb <0.8,0.8,0.8>} translate<-10,-15,-10> rotate <0,135,0> translate <10,15,10> } #declare hel3 = box { <-0.5,9.85,9.7> <2.5,10.15,9.9> pigment {color rgb <0.8,0.8,0.8>} translate<-1,-10,-10> rotate <0,0,45> translate <1,10,10> } #declare hel4 = box { <-0.5,9.85,9.7> <2.5,10.15,9.9> pigment {color rgb <0.8,0.8,0.8>} translate<-1,-10,-10> rotate <0,0,135> translate <1,10,10> } //#declare box2 = //box { // <0,0,0> // <2,3,4> //pigment {color rgb <0.60,1,0.40>} //} //#declare cil = //cylinder { // <6,0,6> // <6,6,6> // 1 // pigment {color rgb <0,0,0>} // } //#declare prisma = //prism { // conic_sweep // linear_spline // 0, // sweep the following shape from here ... // 1, // ... up through here // 5, // the number of points making up the shape ... // <2,0>, <2,4>, <0,4>, <0,0>, <2,0> //<4,4>,<-4,4>,<-4,-4>,<4,-4>,<4,4> // rotate <180, 0, 0> // scale <1, 1, 1> // translate <0,4,4> // pigment {color rgb <1,1,0.3>} // } // Aqui está a cena, finalmente: difference { object {bola} // object { furo } object {box1} } object {roda1} object {roda2} object {cil1} object {cil2} object {cil3} object {roda3} object {roda4} object {eixo1} object {hel1} object {hel2} object {hel3} object {hel4} //object {box2} //object {cil} //object {prisma}