// Last edited on DATE TIME by USER
// Processed by remove-cam-lights

#macro quadro(tt)

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

#declare raio = 2.000;

#macro interpola(ta, va, tb, vb, tt)
  #local s = (tt-ta)/(tb-ta);
  ((1-s)*va + s*vb)
#end

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

#declare tx_amarelo =
  texture{
    pigment{ color rgb < 1.00, 1.0, 0.00 > }
    finish{ diffuse 0.8 ambient 0.1 specular 0.5 roughness 0.005 }
  }

#declare tx_parede =
  texture{
    pigment{ color rgb < 0.65, 0.65, 0.65 > filter 0.70}

  }

#declare tx_timao =
  texture{
      pigment{
        image_map{
          jpeg "foto.jpg"
        }
        scale 1
        rotate <0,90,0>
      }
  }

#declare tx_bb =
  texture{
      pigment{
        image_map{
          jpeg "bb.jpg"
        }
        scale 1
        rotate <0,90,00>
      }
  }

#macro timao()
  union{
    object{
      box{
        <1.01,0,1>,
        <1.01,1,1.9>
        texture{ tx_timao}
        rotate 90*x
      }
    }
  }

#end

#local ponto11 = <1,0,4>;
#local ponto12 = <1,0.5,3>;
#local ponto13 = <1,0.5,2>;
#local ponto14 = <1,0,1>;

#local ponto21 = <1.1,1,4.2>;
#local ponto22 = <1.1,1.5,3.2>;
#local ponto23 = <1.1,1.5,2.2>;
#local ponto24 = <1.1,1,1.2>;

#local ponto31 = <0.8,2,3.5>;
#local ponto32 = <0.8,2.5,2.5>;
#local ponto33 = <0.8,2.5,1.5>;
#local ponto34 = <0.8,2,0.5>;

#local ponto41 = <1,3,4>;
#local ponto42 = <1,3.5,3>;
#local ponto43 = <1,3.5,2>;
#local ponto44 = <1,3,1>;

#local raio = 0.1;

#include "eixos.inc"
#include "retalho.inc"

union{

  object{ eixos(3.00) }

  union{
    object{timao() translate <0, 1.5, 2>}
    object{
        box{
          <1, -1, 0>,
          <-1, 1, 3>
          texture{ tx_amarelo }
        }
      }
    translate -1*z
  }

  object { retalho(
    ponto11, ponto12, ponto13, ponto14,
    ponto21, ponto22, ponto23, ponto24,
    ponto31, ponto32, ponto33, ponto34,
    ponto41, ponto42, ponto43, ponto44,
    raio,
    tx_amarelo, tx_bb
  ) scale 0.2 translate <0,0,2> }

}

#end //fim da macro

quadro(clock)

// Original camera parameters:
// #local cam_ctr = <0,0,0>
// #local cam_loc = <8.00,4.00,2.00>
// #local cam_vec = <8.00,4.00,2.00>
// #local cam_sky = z

#include "camlight.inc"
camlight(<0,0,0>,5.041,<10,10,10>,9.165,z,1.2)