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

#include "eixos.inc"

#declare tx_vidro = 
  texture{
    pigment{ color rgb < 0.85, 0.95, 1.00 > filter 0.9 }
    finish{ diffuse 0.03 reflection 0.25 ambient 0.02 specular 0.25 roughness 0.005 }
  }

#declare tx_xadrez =
  texture{
    pigment{ checker color rgb < 0.10, 0.32, 0.60 >, color rgb < 1.00, 0.97, 0.90 > }
    finish{ diffuse 0.9 ambient 0.1 }
    scale 2.0
  }
  
 #declare chao = 
  box{ <-20,-20,-1>, <+20,+20,5> }

 #declare dodecaedro = intersection{
      object{plane{<1, 0, 1.618>, 1}}
      object{plane{<1, 0, -1.618>, 1}}
      object{plane{<-1, 0, 1.618>, 1}}
      object{plane{<-1, 0, -1.618>, 1}}

      object{plane{<1.618, 1, 0>, 1}}
      object{plane{<1.618, -1, 0>, 1}}
      object{plane{<-1.618, 1, 0>, 1}}
      object{plane{<-1.618, -1, 0>, 1}}

      object{plane{<0, 1.618, 1>, 1}}
      object{plane{<0, 1.618, -1>, 1}}
      object{plane{<0, -1.618, 1>, 1}}
      object{plane{<0, -1.618, -1>, 1}}
    }

  #declare octaedro = intersection{
      object{plane{<1, 1, 1>, 1}}
      object{plane{<1, 1, -1>, 1}}
      object{plane{<1, -1, 1>, 1}}
      object{plane{<1, -1, -1>, 1}}

      object{plane{<-1, 1, 1>, 1}}
      object{plane{<-1, 1, -1>, 1}}
      object{plane{<-1, -1, 1>, 1}}
      object{plane{<-1, -1, -1>, 1}}
    }

  #declare cubo = intersection{
      object{plane{<1, 0, 0>, 1}}
      object{plane{<-1, 0, 0>, 1}}
      object{plane{<0, 1, 0>, 1}}
      object{plane{<0, -1, 0>, 1}}
      object{plane{<0, 0, 1>, 1}}
      object{plane{<0, 0, -1>, 1}}
  }


//------------------------------------Descrição
  object{ chao  translate < 0,0,-10 > texture{ tx_xadrez } }


  /* icosaedro */
  object{
    intersection{
      object{dodecaedro}
      object{octaedro scale 0.95 }
      }
      texture{tx_vidro} interior{ior 1.2}
  }
  
  /*cubooctaedro*/
    object{
    intersection{
      object{cubo scale 0.85 }
      object{octaedro}
      }
      translate <0, 4, 0> texture{tx_vidro} interior{ior 1.2}
  }
  

//Camera
#include "camlight.inc"
#declare centro_cena = < 0.00, 2.5, 1.00 >;
#declare raio_cena = 5.0;
#declare dir_camera = < 14.00, 2.00, 6.00 >;
#declare dist_camera = 8.0;
#declare intens_luz = 1.00;
camlight(centro_cena, raio_cena, dir_camera, dist_camera , z, intens_luz)