@options;
  

@figure;
  
  var hauteur=6.24;
  var profond = 2.002;
  var plafond= 6.5;
  
  M1=point(-5,5){i};
  M2=point(-5,4.4){i};
  M3=point(-5,3.8){i};
  texte1 = texte( M1 ,"Hauteur de l'armoire : 2,40 m")  { noir};
  texte2 = texte( M2 ,"Profondeur de l'armoire : 0,77 m")  { noir};
  texte3 = texte( M3 ,"Hauteur du plafond : 2,50 m")  { noir};
  
 var b = plafond-4.5;
  P1 = point( -4.5, -4.5 )  { i , fixe };
  P2 = point( 4.5 , -4.5 )  { i , fixe };
  P3 = point( 4.5 , b )  { i , fixe };
  P4 = point( -4.5 , b)  { i , fixe };
  poly_P = polygone( P1 , P2 , P3 , P4  )  {rose,plein30};
 
 var c = hauteur-2;
 var d = profond-4.5;
  A1 = point( -2 , -4.5  ) {i} ;
  A2 = point(c,-4.5  )  {i};
  A3= point(c,d){ i};
  
  dP4P3= droite(P4P3){i};
  var diag =A1A3;
  ce_arm = cerclerayon( A1 , diag ) {i};
  T = intersection( dP4P3 , ce_arm , 1 ) {i};
  
  var a =angle(A3A1T) { 88.3791792481 };
  varsi x =[diag<7.1,90,a] { 90 };
  rot = rotation( A1 , x );
  Y = image( rot , A2 )  { i  };
  arc= arc( A2 , A1 , Y )  { i };
  B2 = pointsur( arc , 0 )  { vert , rond2,sansnom  };
  sA1B2=segment(A1,B2){i};
  perp2=perpendiculaire(B2,sA1B2){i};
  c2=cerclerayon(B2,profond) {i};
  B3= intersection(c2, perp2,1){ i};
  perp3=perpendiculaire(A1,sA1B2){i};
  c3=cerclerayon(A1,profond) {i};
  B4= intersection(c3, perp3,1){ i};
  poly_B = polygone( A1 , B2 , B3 , B4  ) {marron,plein60};
 
@analyse;

@enonce;

@config;
couleurfonddessin=0xFFFFFF;