// Last edited on 2017-05-03 18:52:21 by stolfilocal // Processed by remove-cam-lights background{ color rgb < 0.75, 0.80, 0.85 > } #declare tx_xadrez = texture{ pigment{ checker color rgb < 0.0, 0.0, 0.0 >, color rgb < 1.00, 1.00, 1.00 > } finish{ diffuse 0.9 ambient 0.1 } scale 2.0 } #declare tx_base = texture{ pigment{ color rgb < 0.12, 0.10, 0.70 > } finish{ diffuse 0.9 ambient 0.1 } } #declare tx_metal = texture{ pigment{ color rgb < 0.8, 0.80, 0.70 > } finish{ diffuse 0.9 ambient 0.1 } } #declare chao = box{ <-20,-20,-1>, <+20,+20,0> } #declare base = intersection{ box{ <0,0,0>, <+4,+2,+1> } cylinder{ <0, 1, 0.5>, <4,1,0.5>, 1 } } #declare plug = difference { box{ <4, 0.3, 0.3>, <5, 1.7, 0.7> } box{ <4, 0.32, 0.4>, <5.1, 1.68, 0.68> } } #declare pin = union{ box{ <0, 1.2, 0.8>, <-1.5, 0.8, 0.9> } cone{ <-1.5, 1, 0.9>, 0.35, <-1.5, 1, 0.3>, 0.1 } } #declare pin_hole = union { difference{ union{ box{ <0, 1.2, 0.4>, <-1.5, 0.8, 0.3> } sphere{ <-1.5, 1, 0.35>, 0.5 } } box { <-1.5-1, 1-1, 0.35>, <-1.5+0.5, 1+1, 0.35+1> } sphere{ <-1.5, 1, 0.35>, 0.4 } cylinder{ <-1.5, 1, -10>, <-1.5, 1, 10>, 0.2 } } } #include "eixos.inc" union{ object{ eixos(3.00) } object{ chao translate < 0,0,-5 > texture{ tx_xadrez } } object{ base texture{ tx_base } } object{ plug texture{ tx_metal } } object{ pin texture{ tx_metal } } object{ pin_hole texture{ tx_metal } } } #include "camlight.inc" #declare centro_cena = < +2.00, +1.00, +0.75 >; #declare raio_cena = 5.0; #declare dir_camera = < 7.00, -14.00, 4.00 >; #declare dist_camera = 16.0; #declare intens_luz = 1.00; camlight(centro_cena, raio_cena, dir_camera, dist_camera , z, intens_luz)