A

B

H

I

A

D

G

F

C

X_1

X_2

X_3

X_4

E

Défi N° 1
Ranger les pièces A, B, C D, E, F dans la boîte X1

Défi N° 2
Ranger les pièces A, B, C , E, F dans la boîte X2

Défi N°3
Ranger les pièces A, B, C D, F dans la boîte X3

Défi N° 4
Ranger les pièces A, B, C , E, H, I dans la boîte X4

A1 = (7.045942389186011, 13.12486547074636)
B1 = Point(Circle[A1, 7])
C1: A1 + Vector[A1, B1] + 0.857142857142858 * OrthogonalVector[Segment[A1, B1]]
D1: A1 - 7.2504360791847E-17 * Vector[A1, B1] + 0.571428571428572 * OrthogonalVector[Segment[A1, B1]]
poly1, a_1, b, c, d = Polygon(A1, B1, C1, D1)
T = (19.645273187889515, 12.853325942425112)
q = -1
r = 0
S: (q + x(T), r + y(T))
s = -1
t = -1
R_3: (s + x(T), t + y(T))
u = 0
v = -1
U: (u + x(T), v + y(T))
poly5, s_1, r_1, u_1, t_1 = Polygon(S, R_3, U, T)
T_1 = (10.050269294188224, 13.11519496747228)
S_1: (q + x(T_1), r + y(T_1))
R_1: (s + x(T_1), t + y(T_1))
U_1: (u + x(T_1), v + y(T_1))
poly5_1, s_2, r_2, u_2, t_2 = Polygon(S_1, R_1, U_1, T_1)
T_2 = (14.717050870835447, 13.102108570289172)
S_2: (q + x(T_2), r + y(T_2))
R_2: (s + x(T_2), t + y(T_2))
U_2: (u + x(T_2), v + y(T_2))
poly5_2, s_3, r_3, u_3, t_3 = Polygon(S_2, R_2, U_2, T_2)
E = (10.402711877605386, 13.115885925605275)
F = (10.402711877605386, 12.115885925605275)
G = (13.402711877605391, 12.115885925605275)
H = (13.402711877605391, 13.115885925605275)
poly2, e, f, g, h = Polygon(E, F, G, H)
I = (12.012558370020507, 7.143105860966619)
J: (x(I) + 1, y(I) + 2 / 7)
L: (x(I), y(I) + 4)
K: (x(J), y(L))
poly3, i, j, k, l = Polygon(I, J, K, L)
M = (8.757740391620661, 6.444017976749148)
N: (x(M) + 3, y(M) + 6 / 7)
Q: (x(M), y(M) + 33 / 7)
P: (x(N), y(Q))
poly4, m, n, p, q_1 = Polygon(M, N, P, Q)
R = (18.670182214645305, 7.920908688350446)
V: (x(R) + 1, y(R) + 2 / 7)
X: (x(R), y(R) + 27 / 7)
W: (x(V), y(X))
poly6, r_4, v_1, w, O = Polygon(R, V, W, X)
Z = (21.830255959283917, 8.8184011521147)
Y: (x(Z), y(Z) + 4)
Y1: (x(Y) - 2, y(Y))
Y2: (x(Z) - 2, y(Z) - 4 / 7)
poly7, y2, z, A_1, y1 = Polygon(Y2, Z, Y, Y1)
A = Point(poly7)
B = Point(poly6)
C = Point(poly3)
D = Point(poly4)
B_1 = Point(poly2)
C_1 = Point(poly5)
D_1 = Point(poly5_1)
E_1 = Point(poly5_2)
F_1 = (13.234193697212165, 6.312735336651703)
G_1 = PointIn(poly7)
F_2: (x(F_1) + 3, y(F_1) + 6 / 7)
F_3: (x(F_2), y(F_2) + 4)
F_4: (x(F_1), y(F_3))
poly8, f_1, f_2, f_3, f_4 = Polygon(F_1, F_2, F_3, F_4)
H_1 = (0, 0)
J_1: (x(H_1) + 7, y(H_1) + 2)
K_1: (x(J_1), y(J_1) + 27 / 7)
L_1: (x(H_1), y(K_1))
poly9, h_1, j_1, k_1, l_1 = Polygon(H_1, J_1, K_1, L_1)
H_2 = (8, 0)
J_2: (x(H_2) + 7, y(H_2) + 2)
K_2: (x(J_2), y(J_2) + 26 / 7)
L_2: (x(H_2), y(K_2))
poly9_1, h_2, j_2, k_2, l_2 = Polygon(H_2, J_2, K_2, L_2)
H_3 = (16, 0)
J_3: (x(H_3) + 7, y(H_3) + 2)
K_3: (x(J_3), y(J_3) + 25 / 7)
L_3: (x(H_3), y(K_3))
poly9_2, h_3, j_3, k_3, l_3 = Polygon(H_3, J_3, K_3, L_3)
I_1 = PointIn(poly8)
M_1 = Midpoint(E, G)
N_1 = Midpoint(P, M)
O_1 = Midpoint(T_1, R_1)
P_1 = Midpoint(K, I)
Q_1 = Midpoint(F_4, F_2)
V_1 = Midpoint(T_2, R_2)
W_1 = Midpoint(R_3, T)
Z_1 = Midpoint(X, V)
A_2 = Midpoint(Y2, Y)
B_2 = (25.378138011253625, -0.018409499993176745)
b_1 = Line(B_2, k_3)
C_2 = (25.443968357408714, 5.862434756527924)
c_1 = Line(C_2, k_3)