// Last edited on 2005-01-05 18:22:46 by stolfi
// Processed by remove-cam-lights

background{ color rgb < 0.75, 0.80, 0.85 > }

#declare vermelho =
  texture {
    pigment { color rgb < 1 , 0, 0 > }
    finish { diffuse 0.8 specular 0.4 roughness 0.005 ambient 0.1 }
  }

#declare azul =
  texture {
    pigment { color rgb < 0.1, 0.8, 1> }
    finish { diffuse 0.8 specular 0.4 roughness 0.005 ambient 0.1 }
  }

#declare amarelo =
  texture {
    pigment {color rgb <1, 0.8, 0.1>}
    finish { diffuse 0.8 specular 0.4 roughness 0.005 ambient 0.1 }
}

#declare quarto1 =
difference {
    sphere {
      < 0, 0, 0>
      5
      texture {amarelo}
    }
  union{
    box {
      <5, 5, 0>
      <-5, -5, 5>
    }
    box {
      <0, 5, 0.5>
      <-5, -5, -5>
    }
   }
 }

#declare quarto2 =
difference {
    sphere {
      < 0, 0, -7>
      5
      texture {amarelo}
    }
   union{
    box {
      <5, 5, -7>
      <-5, -5, -12>
    }
    box {
      <0, 5, -9.5>
      <-5, -5, -2>
    }
   }
 }

#declare quarto3 =
difference {
    sphere {
      < 0, 0, 0>
      5
      texture {amarelo}
    }
    union{
    box {
      <5, 5, 0>
      <-5, -5, 5>
    }
    box {
      <0, 5, 0.5>
      <5, -5, -5>
    }
   }
 }

#declare quarto4 =
difference {
    sphere {
      < 0, 0, -7>
      5
      texture {amarelo}
    }
    union{
    box {
      <5, 5, -7>
      <-5, -5, -12>
    }
    box {
      <0, 5, -12.5>
      <5, -5, -2>
    }
   }
 }

#declare corpo1=
union{
  cone{
   <9,0,4>,
   2.5,
   <17,0,4>,
   1.5
   texture{vermelho}
  }
  box {
   <9,5,7>,
   <0,-5,0>
   texture{azul}
  }
  object{quarto1}
  object{quarto2}
}

#declare corpo2=
 union{
   box {
    <-9,5,7>,
    <0,-5,0>
    texture{azul}
   }
   object{quarto3}
   object{quarto4}
}

 union{
  object{corpo1
         translate <0,0,-7>
         rotate -45*y
         translate <0,0,7>}
  object{corpo2
  translate <0,0,-7>
         rotate 45*y
         translate <0,0,7>
 }
  }

#include "camlight.inc"
camlight(<0,0,3.5>,<10.00,50.00,30.00>,0.75,z,1.0)