#include "definition.inc"
#include "transforms.inc" // Voir guide, sections 7.18 (et 8.5)
#declare epaisseurTraits=0.03;
 
couleurFond(120,120,120)

#declare C = <1,17,0>;
#declare P = <1,2.5,0>;

camera
{ location  C
  look_at   P
}

uneLumiere(C)



#declare CONE1 = object
{
  unCone(<-5,0,0>,2,<-5,5,0>,0,false)
  couleur(120,150,40,0) 
  
}


#declare CONE2 = object
{
  unCone(<1,0,0>,2,<1,5,0>,0,false)
  couleur(255,0,0,0) 
  Shear_Trans(<1,0,0>,<1.5,0,0>,<0,0,1>) 
}


#declare trans = clock*0.1;

#declare PLAN =  object
{
  unPrisme(<-7,trans+0.1,-2.5>,<9,trans+0.1,2.5>)
   
  
}


#declare COUPE1 = intersection
{ object{PLAN}
  object{CONE1}
  couleur (120,150,40,0)
}

#declare COUPE2 = intersection
{ object{PLAN}
  object{CONE2}
  couleur (255,0,0,0)
}

COUPE1
COUPE2
