input geometriesyr12;
figure(0,0,7u,6u);
pair A,B,C,D,E,F;
D=u*(1,1);
C=D shifted(u*(4,0));
A=D shifted(u*(0,3));
B=A shifted(C-D);
trace A--B--C--D--cycle;
E=1/4[A,B];
F=2/5[B,C];
trace E--D--F--cycle;
draw hachurage(E--D--F--cycle,60,0.3,0);
nomme.ulft(A);
nomme.urt(B);
nomme.lrt(C);
nomme.llft(D);
nomme.top(E);
nomme.lrt(F);
label.rt(btex $x$ etex,iso(B,F));
draw codeperp(D,A,B,5);
draw codeperp(A,B,C,5);
draw codeperp(B,C,D,5);
fin;
figure(0,0,8u,6u);
cadre((0,0),(8,6));
trace grille(0.5) withcolor gris;
pair A,B,C,E,F;
A=u*(0.5,5.5);
path ff;
picture fifi,numero;
fifi=image(
  ff=A--u*(2,5.5)--u*(2,5)--u*(1,5)--u*(1,4.5)--u*(1.5,4.5)--u*(1.5,4)--u*(1,4)--u*(1,3)--u*(0.5,3)--cycle;
  fill ff withcolor noir;
  );
numero=image(
  fill cercles(u*(0.75,4.5),2mm) withcolor white;
  );
B=u*(3,3.5);
C=u*(5,2);
E=u*(2.5,6);
F=u*(8,0.5);
trace droite(E,F);
label.bot(btex (d) etex,E);
marque_p:="croix";
nomme.top(A);
nomme.top(C);
nomme.top(B);
drawoptions(withpen pencircle scaled 1.5bp);
trace fifi;
trace numero;
label(btex 4 etex,u*(0.75,4.5));
trace fifi shifted(B-A);
trace numero shifted(B-A);
label(btex 1 etex,u*(0.75,4.5) shifted(B-A));
trace symetrie(fifi shifted(B-A),C);
trace symetrie(numero shifted(B-A),C);
label(btex 2 etex,symetrie(u*(0.75,4.5) shifted(B-A),C));
trace symetrie(fifi shifted(B-A),E,F);
trace symetrie(numero shifted(B-A),E,F);
label(btex 3 etex,symetrie(u*(0.75,4.5) shifted(B-A),E,F));
drawoptions();
fin;
end