input geometriesyr.mp ; %---------------------------------------------------------------------------- %exercice 1 %---------------------------------------------------------------------------- u:=1cm; figure (-4u,-4u,4u,4u); pair A,B,C,D,E,F,G,H,O; O=(0,0); A=(-3u,0); B=(-3u,3u); C=(0,3u); D=(3u,3u); E=(3u,0); F=(3u,-3u); G=(0,-3u); H=(-3u,-3u); path pp; pp=A--B--C--cycle; fill pp withcolor 0.1[white,black]; draw H--F--D--B--cycle; draw A--E; draw C--G; draw A--C; nomme.lft(A); nomme.lft(B); nomme.top(C); nomme.rt(D); nomme.rt(E); nomme.rt(F); nomme.bot(G); nomme.lft(H); nomme.ulft(O); fin; %---------------------------------------------------------------------------- %Problème %---------------------------------------------------------------------------- u:=0.5cm; figure (-2u,-3u,15u,15u); pair A,B,C,D,E,F,G,H,I; pair V; V=(2u,3u); A=(0,10u); B=(12u,10u); E=(0,0); F=(12u,0); G=F shifted V; H=E shifted V; C=B shifted V; D=A shifted V; I= H shifted (0,4u); draw A--B--C--D--cycle; draw A--E--F--B; draw F--G--C; draw E--H--G dashed evenly; draw D--H dashed evenly; draw D--E dashed evenly; draw D--F dashed evenly; draw D--G dashed evenly; nomme.lft(A); nomme.lrt(B); nomme.rt(C); nomme.top(D); nomme.bot(E); nomme.bot(F); nomme.rt(G); nomme.ulft(H); nomme.rt(I); marque_p := "croix"; MarquePoint(I); fin; %---------------------------------------------------------------------------- % Exercice 1 géométrique %---------------------------------------------------------------------------- u:=0.5cm; figure (-8u,-8u,8u,8u); pair O,A,B,C; O=(0,0); A=(-5u,0); B=(5u,0); path cc; cc=cercles(O,5u); C=point(length cc*50/360) of cc; marque_p := "croix"; MarquePoint(O); draw A--B--C--cycle; draw cc; nomme.bot(O); nomme.lft(A); nomme.rt(B); nomme.urt(C); fin; %--------------------------------------------------------------------------- end ;