#include "definition.inc"
#declare epaisseurTraits=0.03;
couleurFond(160,160,160) 



#declare C = <3,1,-20>;
#declare P = <3,1,0>;

camera
{ location  C
  look_at   P
}

uneLumiere(C)

#declare BASE = object{
unPrisme(<-10,-1,-10>,<13,-0.05,10>)
  couleur(255,255,255,0)}

#declare trans = clock*0.1;



#declare CONE= 
object
{
  unCone(<3,0,0>,0,<3,2,0>,2,true)
  couleur(0,0,0,40) 
}

#declare CONE2=

object
{
  unCone(<9,0,0>,0,<9,2,0>,2,true)
  couleur(0,150,150,20) 
}

 

#declare SPHERE = 
object
{
  uneSphere(<-3,0,0>,2)
  couleur(150,60,20,20) 
   
}

#declare CYLINDRE = 
object
{
  unCylindre(<3,0,0>,<3,2,0>,2,true)
  couleur(100,0,160,20) 
  }


#declare PLAN = object{


  unPrisme(<-4,1,-5>,<10,1.05,5>)
  couleur (50,50,50,20)
}

#declare PLAN2 = object{


  unPrisme(<-6,-0.1,-2+trans>,<12,3,-2+trans>)
  couleur (120,120,120,10)
 
}
#declare COUPESP = intersection 
{ 
object {PLAN} 
object{SPHERE}
 couleur(150,60,20,0) 
}

#declare CYCO = difference
{ 
object {CYLINDRE} 
object{CONE}

}
#declare COUPECY = intersection 
{ 
object {PLAN} 
object{CYLINDRE}
couleur(100,0,160,0)
}
#declare COUPECYCO = intersection 
{ 
object {PLAN} 
object{CYCO}
couleur(60,0,120,0)
}

#declare COUPECO = intersection 
{ 
object {PLAN} 
object{CONE2}
couleur(0,150,150,20)

}


#declare vertcy = intersection 
{ 
object {PLAN2} 
object{CYLINDRE}

couleur(120,0,180,0)
}

#declare vertsp = intersection 
{ 
object {PLAN2} 
object{SPHERE}
couleur(150,60,20,0) 
}

#declare vertp = intersection 
{ 
object {PLAN2} 
object{PLAN}
couleur(150,60,20,0) 
couleur (50,50,50,20)
}
#declare vertco = intersection 
{ 
object {PLAN2} 
object{CONE2}

couleur(0,150,150,20)
}

//COUPECYCO
//COUPESP
//COUPECO
//COUPECY
//CONE
SPHERE
CYLINDRE
PLAN
//CYCO
CONE2
PLAN2
//vertsp
//vertco
//vertcy
//vertp
BASE