// Last edited on 2017-05-03 19:09:12 by stolfilocal // Processed by remove-cam-lights background{ color rgb < 1, 1, 1 > } #declare tx_plastico = texture{ pigment{ color rgb < 0.10, 0.80, 1.00 > } finish{ diffuse 0.8 ambient 0.1 specular 0.5 roughness 0.005 } } #declare tx_fosca = texture{ pigment{ color rgb < 1.0, 0, 0 > } finish{ diffuse 0.9 ambient 0.1 } } #declare tx_fosca2 = texture{ pigment{ color rgb < 0, 0, 1.0 > } finish{ diffuse 0.9 ambient 0.1 } } #declare tx_fosca3 = texture{ pigment{ color rgb < 0, 1.0, 0 > } finish{ diffuse 0.9 ambient 0.1 } } #declare tx_espelho = texture{ pigment{ color rgb < 1.00, 0.85, 0.30 > } finish{ diffuse 0.2 reflection 0.7*< 1.00, 0.85, 0.30 > ambient 0.1 } } #declare tx_vidro = texture{ pigment{ color rgb < 0, 0, 0 > filter 0.70 } finish{ diffuse 0.03 reflection 0.25 ambient 0.02 specular 0.25 roughness 0.005 } } #declare tx_xadrez = texture{ pigment{ checker color rgb < 0.10, 0.32, 0.60 >, color rgb < 1.00, 0.97, 0.90 > } finish{ diffuse 0.9 ambient 0.1 } scale 2.0 } #declare corpo = box{ <-4,-1,-0.5>, <+4,+1,0.5> texture {tx_plastico}} #declare conector = box{ <-1,-0.4,-0.1>, <+1,+0.4,0.1> texture {tx_espelho}} #declare furo1 = cylinder{ < 0.00, +1.01, 0.00 >, < 0.00, -1.01, 0.00 >, 0.25 } #declare corrente = cylinder{ < 0.00, 0.00, 0.00 >, < -6.00, 0.00, 0.00 >, 0.1 texture{ tx_fosca } } #declare bola = sphere{ < -11,0,0 >, 1.0 texture {tx_fosca3} } #declare furo2 = cylinder{ < -11, +1, 0.00 >, < -11, -1, 0.00 >, 0.2 } #declare monoculo = cone{ <0,0,0>, 0.25 <0,-2,0>, 1.0 texture{ tx_xadrez } } #declare cilindro = cylinder{ <0,0,0>, <0,-4,0>, 0.3 texture {tx_fosca} } #declare regua = box{ <0,0,0> <-0.8,-4,0.3> texture {tx_fosca2} } #include "eixos.inc" union{ object{ eixos(3.00) } object{ conector translate < 4,0,0 > texture {tx_espelho} } object{ corrente translate < -4,0,0 > } object{ monoculo translate <0,-1,0> } object{ cilindro translate <1,-0.9,0> rotate <0,0,30> } object{ cilindro translate <-1,-0.9,0> rotate <0,0,-30> } object{ regua translate <-2,-0.9,-0.25> rotate <0,0,-30> } object{ regua translate <2.5,-0.9,-0.25> rotate <0,0,30> } difference { object{bola} object{furo2} } difference { object{corpo} object{furo1} } } #include "camlight.inc" #declare centro_cena = < -2.00, -1.00, 1.00 >; #declare raio_cena = 8.0; #declare dir_camera = < 14.00, 7.00, 10.00 >; #declare dist_camera = 45.0; #declare intens_luz = 1.00; camlight(centro_cena, raio_cena, dir_camera, dist_camera , z, intens_luz)