// totally crazy ???? #version 3.1; global_settings { assumed_gamma 1.0 } // // a camera // camera { location <-12, 0, 0> look_at <7, 0, 0> } // // some lights // light_source { <-5,3,-5> color rgb <1,1,1>} light_source { <-5,3,5> color rgb <1,1,1>} light_source { <-5,-3,-5> color rgb <1,1,1>} light_source { <-5,-3,5> color rgb <1,1,1>} // // A Tube // #declare Tube=difference { cylinder {-2.6*x,2.6*x,.2} cylinder {-2.7*x,2.7*x,.15} } // // I put it around a sphere #declare Machin=union { sphere {0,2.5} #local Nb=1; #while (Nb<9) #local Angle=(360/8)*Nb; object { Tube rotate 25*z rotate Angle*y } object { Tube rotate 50*z rotate (360/16+Angle)*y } #local Nb=Nb+1; #end } // // I want to make this object empty // So I make a CSG difference with a sphere // #declare Machin1=difference { object {Machin} // Radius of sphere : 2.5 sphere {0,1} // a smaller radius } object {Machin // Not empty object translate 3*z pigment {color rgb 1.5*<.6, .25, .15>} finish {ambient 0.4} } object {Machin1 // empty object : what about the black circle on his surface !!!!! translate -3*z pigment {color rgb 1.5*<.6, .25, .15>} finish {ambient 0.4} }