Q1 = (-3.24, 2)
R1 = (0.2, 2)
S1, T1, poly12, q1, r1, s1, t1 = carré2(Q1, R1)
U1 = Midpoint(t1)
V1 = Midpoint(s1)
W1 = Midpoint(r1)
Z1 = Midpoint(q1)
a = Segment(S1, W1)
b = Segment(W1, Q1)
c = Segment(Q1, V1)
d = Segment(V1, R1)
e = Segment(R1, U1)
f = Segment(U1, T1)
g = Segment(T1, Z1)
h = Segment(Z1, S1)
i = Segment(V1, Z1)
j = Segment(W1, U1)
k = Segment(S1, R1)
l = Segment(Q1, T1)
m = Segment(U1, V1)
n = Segment(V1, W1)
p = Segment(W1, Z1)
q = Segment(Z1, U1)
A = Intersect(k, m)
B = Intersect(l, q)
C = Intersect(k, p)
D = Intersect(l, n)
r = Line(A, B)
s = Line(B, C)
t = Line(C, D)
E = Intersect(s1, r)
F = Intersect(s1, t)
G = Intersect(r1, s)
H = Intersect(q1, t)
I = Intersect(q1, r)
a1 = Line(A, D)
J = Intersect(t1, a1)
K = Intersect(r1, a1)
b1 = Segment(V1, J)
e1 = Segment(E, U1)
L = Intersect(i, k)
M = Intersect(t1, s)
c1 = Segment(E, L)
d1 = Segment(L, J)
f1 = Segment(M, Z1)
g1 = Segment(M, L)
h1 = Segment(L, I)
i1 = Segment(I, U1)
j1 = Segment(F, L)
k1 = Segment(L, K)
l1 = Segment(K, V1)
m1 = Segment(F, W1)
n1 = Segment(L, H)
p1 = Segment(H, W1)
a2 = Segment(G, L)
b2 = Segment(G, Z1)
N = Intersect(c, r)
O = Intersect(a, a1)
P = Intersect(b, s)
Q = Intersect(d, t)
R = Intersect(b, d)
S = Intersect(g, a2)
T = Intersect(b, n1)
U = Intersect(e, g)
V = Intersect(n1, b2)
W = Intersect(e, p1)
Z = Intersect(d, b2)
A1 = Intersect(p1, a2)
B1 = Intersect(e, h1)
C1 = Intersect(b, h)
D1 = Intersect(f1, h1)
E1 = Intersect(b, i1)
F1 = Intersect(c, f1)
G1 = Intersect(g1, i1)
H1 = Intersect(c, e)
I1 = Intersect(h, g1)
J1 = Intersect(f, h)
K1 = Intersect(e1, d1)
L1 = Intersect(h, b1)
M1 = Intersect(a, e1)
N1 = Intersect(b1, c1)
O1 = Intersect(a, c)
P1 = Intersect(f, c1)
A2 = Intersect(c, d1)
B2 = Intersect(d, f)
C2 = Intersect(a, j1)
D2 = Intersect(d, k1)
E2 = Intersect(a, g)
F2 = Intersect(k1, m1)
G2 = Intersect(g, l1)
H2 = Intersect(f, m1)
I2 = Intersect(j1, l1)
poly1, e_1, m1_1, s1_1, l1_1, j_1, k1_1, u1, j1_1, n_1, a2_1, l_1, p1_1, o, o1, v1, n1_1 = Polygon(E, M1, S1, L1, J, K1, U1, J1, N, A2, L, P1, O, O1, V1, N1)
poly2, v1_1, b2_1, o_1, c2, l_2, d2, q_1, e2, w1, f2, k_1, g2, t1_1, h2, f_1, i2 = Polygon(V1, B2, O, C2, L, D2, Q, E2, W1, F2, K, G2, T1, H2, F, I2)
poly3, u1_1, g1_1, m_1, f1_1, q1_1, e1_1, i_1, d1_1, z1, c1_1, p_1, b1_1, l_3, i1_1, n_2, h1_1 = Polygon(U1, G1, M, F1, Q1, E1, I, D1, Z1, C1, P, B1, L, I1, N, H1)
poly4, l_4, t_1, p_2, u, z1_1, v, h_1, w, r1_1, z, g_1, a1_1, w1_1, r_1, q_2, s_1 = Polygon(L, T, P, U, Z1, V, H, W, R1, Z, G, A1, W1, R, Q, S)
J2 = (3.58, -4.620000000000001)
K2 = (13.540000000000001, -4.620000000000001)
L2, M2, poly5, j2, k2, l2, m2 = carré2(J2, K2)
N2 = Midpoint(m2)
O2 = Midpoint(l2)
P2 = Midpoint(k2)
Q2 = Midpoint(j2)

Tool: carré2
2 points
Input: A, B
Output: C, D, poly1, a, b, d, c

C = Rotate(B, 90°, A)
D = Rotate(A, 270°, B)
poly1, a, b, d, c = Polygon(A, B, D, C)