// Last edited on 2013-11-04 01:28:12 by stolfilocal
// Processed by remove-cam-lights

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

#declare tx_plastico =
  texture{
    pigment{ color rgb < 0.10, 0.80, 1.00 > }
    finish{ diffuse 0.8 ambient 0.1 specular 0.5 roughness 0.005 }
  }

#declare tx_fosca2 =
  texture{
    pigment{ color rgb < 0.4, 0.80, 1 > }
    finish{ diffuse 0.9 ambient 0.1 }
  }

#declare tx_fosca3 =
  texture{
    pigment{ color rgb < 0.8, 0.10, 0.1 > }
    finish{ diffuse 0.9 ambient 0.1 }
  }

#declare tx_coco =
  texture{
    pigment{ color rgb < 0.5, 1, 0.5 > }
    finish{ diffuse 0.9 ambient 0.1 }
  }

#declare tx_fosca =
  texture{
    pigment{ color rgb < 1.00, 0.80, 0.4 > }
    finish{ diffuse 0.9 ambient 0.1 }
  }

#declare tx_espelho =
  texture{
    pigment{ color rgb < 1.00, 0.85, 0.30 > }
    finish{ diffuse 0.2 reflection 0.7*< 1.00, 0.85, 0.30 > ambient 0.1 }
  }

#declare tx_vidro =
  texture{
    pigment{ color rgb < 0.6, 0.8, 1.00 > filter 0.90 }
    finish{ diffuse 0.03 reflection 0.3 ambient 0.1 specular 0.25 }
  }

#declare tx_xadrez =
  texture{
    pigment{ checker color rgb < 0.70, 0.70, 0.90 >, color rgb < 0.80 ,0.80, 1.00 > }
    finish{ diffuse 0.9 ambient 0.1 }
    scale 2.0
  }

#declare raio = 2.000;

#declare bola =
  sphere{
    < 0.00, 0.00, 0.00 >, 0.30
    texture{ tx_fosca3 }
  }

#declare chapa =
  sphere{
    < 0.00, 0.00, 0.00 >, 0.50
    texture{ tx_vidro }
  }
#declare buraco =
  sphere{
    < 0.00, 0.00, 0.00 >, 0.60
    texture{ tx_vidro }
  }

#declare coco =
  sphere{
    < 0.00, 0.00, 0.00 >, 0.60
    texture{ tx_coco }
  }

#declare coco_dentro =
  sphere{
    < 0.00, 0.00, 0.00 >, 0.80
    texture{ tx_fosca }
  }

#declare pino =
  cylinder{
    < 0,0,0 >,
    < 3,0,0 >,
    0.10
    texture{ tx_vidro }
  }

#declare alca =
  torus{
    0.14,0.15
    texture{ tx_vidro}
  }

#declare cubo =
  box{
    <0,0,0>,
    <2,2,2>
    texture{ tx_fosca }
  }

#declare chao =
  box{ <-20,-20,-1>, <+20,+20,0> }

#include "eixos.inc"

union{
  // object{ eixos(3.00) }

  object{ chao  translate < 1,1,-4 > texture{ tx_xadrez } }

  union{
      object{ pino rotate<0,30,0> translate<-0.3,1,1>}
      object{pino rotate<0,-30,0> translate<-0.3,1,0.4>}
      object{alca translate<-0.5,1,1> }
      object{alca translate<-0.45,1.1,0.2>}
      difference{
        object{chapa translate<2.6,1,1.6>}
        object{buraco translate<2.6,1,1.4>}
      }
      difference{
        object{chapa translate<2.6,1,-0.2>}
        object{buraco translate<2.6,1,0>}
      }
      union{
        difference{
          object{coco translate<2.6,1,0>}
          object{cubo translate<2,0.2,0.2>}
        }
        difference{
          object{coco_dentro translate<2.6,1,-0.3>}
          object{cubo translate<1.8,0.2,-1.8>}
        }
        translate 0.6*z
      }

  }
}

#include "camlight.inc"
#declare centro_cena = < 1.50, 1.50, 1.00 >;
#declare raio_cena = 3.2;
#declare dir_camera = < 7.00, 14.00, 7.00 >;
#declare dist_camera = 16.0;
#declare intens_luz = 1.00;
camlight(centro_cena, raio_cena, dir_camera, dist_camera , z, intens_luz)