//Ejemplo de prueba para una escena vista 3D
//Por: Mario H Tiburcio Z

#include "colors.inc"
#include "librerias.inc"

camera {
  location <6,6,-6>
  look_at <0,0,0>
}

light_source {<4,5,-6> color White}
/*box{
  <0,0,0>,<1,1,1>
  pigment {color Blue}
}*/

#declare pa=<0,0,0>;
#declare pb=<5,0,0>;
#declare pc=<0,3,0>;
#declare pd=<0,0,2>;
#declare pe=<5,0,2>;
#declare pf=<0,3,2>;

#declare calza=union{
triangle {pa, pb, pc
pigment {color Red}}

triangle {pd, pc, pf
pigment {color Blue}}

triangle {pd, pd, pf
pigment {color Blue}}

triangle {pa, pd, pe
pigment {color Yellow}}

triangle {pa, pb, pe
pigment {color Yellow}}

triangle {pc, pe, pb
pigment {color Pink}}

triangle {pc, pe, pf
pigment {color Pink}}
}//calza

object{
 calza
 scale<1,1,0.2>
 translate<2,0,0>
 scale<-1,1,1>
 //rotate<-90,0,0>
 /*matrix<
 1, 0,0
 0, 1, 0
 0, 0, 0.2
 0, 0, 0
>

 matrix<
 1, 0, 0
 0, 1, 0
 0, 0, 1
 2, 0, 0
>

 matrix<
 -1, 0,0
 0, 1, 0
 0, 0, 1
 0, 0, 0
>*/
}

plane  { y,-0.01pigment {checker Black White }}
//calza
ejes3D

