#include "colors.inc" #include "textures.inc" background{ color rgb < 1.00, 1.00, 1.00 > } light_source { < 8.00, 10.00, 6.00 > color rgb < 1.00, 1.00, 1.00 > } camera { location < 10.00, 10.00, 8.00 > look_at < 0.00, 0.00, 0.00 > } #declare i = 10; #declare h = 0; union { #while ( i > 0 ) #if (i = 10) box{ <0.75,0.0,0.0> <1.5,0.8,3.25> pigment {color rgb <1,1,1>} } #end box { < 0, h , 0> < 3, h+0.5 , 2 > pigment {color rgb <0,0,1>} } #declare i = i - 1; #declare h = h + 0.5; #end } #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{predio} //object { chao } //object { figm } //object {figm1} //object{figm2}