#include "colors.inc" #include "textures.inc" background{ color rgb < 1.00, 1.00, 1.00 > } light_source { < 1.00, 4.00, -5.00 > color rgb < 1.00, 1.00, 1.00 > } camera { location < 0.00, 3.00, -6.00 > look_at < 0.00, 0.00, 0.00 > } #declare chao = plane { y,0 pigment { checker color rgb <0,0,1> color rgb <1,1,1>} } #declare fig = cylinder { <0.0, 0.5, 1.0> <0.0, 2.5, 1.0> 2.0 texture { pigment { Green } finish { reflection 0.6 ambient 0.2 diffuse 0.6 } } } #declare figi = cylinder { <0.0, 0.5, 1.0> <0.0, 2.6, 1.0> 2.0 texture { pigment { Green } finish { reflection 0.6 ambient 0.2 diffuse 0.6 } } } #declare figm= difference { object{fig} object{figi}} #declare figdi = cylinder { <2.8, 1.0, 1.0> <2.8, 2.1, 1.0> 0.8 texture { pigment {Gray } finish { reflection 0.6 ambient 0.2 diffuse 0.6 } } } #declare figd = cylinder { <2.8, 1.0, 1.0> <2.8, 2.0, 1.0> 0.8 texture { pigment {Gray } finish { reflection 0.6 ambient 0.2 diffuse 0.6 } } } #declare figm1= difference { object{figd} object{figdi} } #declare fige = cylinder { <-2.8, 1.0, 1.0> <-2.8, 2.0, 1.0> 0.8 texture { pigment {Gray } finish { reflection 0.6 ambient 0.2 diffuse 0.6 } } } #declare figei = cylinder { <-2.8, 1.0, 1.0> <-2.8, 2.1, 1.0> 0.8 texture { pigment {Gray } finish { reflection 0.6 ambient 0.2 diffuse 0.6 } } } #declare figm2= difference { object{fige} object{figei} } object { chao } object { figm } object {figm1} object{figm2}