// Last edited on 2019-07-17 14:24:50 by stolfilocal
// Processed by remove-cam-lights

#include "eixos.inc"
#include "dados.inc"

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

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

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

#declare texto =
  text{ttf "arial.ttf" "Z" 1 1.0}

#declare caixa =
difference{
  difference{
      prism {
        linear_sweep
        linear_spline
        -1,// y-begin
        1, // y-end
        7, // pontos
        <2,0>, <1,2>, <-1,2>, <-2,0>, <-1, -2>, <1,-2>, <2,0>
        texture {tex}
      }

      prism {
        linear_sweep
        linear_spline
        -0.9, // y-begin
        0.9, // y-end
        7, // pontos
        <1.9,0>, <0.9,1.9>, <-0.9,1.9>, <-1.9,0>, <-0.9, -1.9>, <0.9,-1.9>, <1.9,0>
        texture {tex}
      }
      rotate <90,0,0>
  }
  object{texto rotate <90,0,0> translate < -0.3,2.5,-0.3 >}
  }

#declare tela =
  box{
    <-3,0,-3>
    <3,0,3>
    texture {tex_white}
  }

object{ eixos(1.00) translate < -1,-1,2 > }
object{caixa}
object{tela translate <0,6,0>}
light_source { <0, 0, 0> color rgb <1,1,1> }

#include "camlight.inc"
#declare centro_cena = < 0, 3, 0>;
#declare raio_cena = 7.0;
#declare dir_camera = < 10, -5, 5 >;
#declare dist_camera = 5*raio_cena;
#declare intens_luz = 0.2;
camlight(centro_cena, raio_cena, dir_camera, dist_camera , z, intens_luz)