A = (-3.42, 2.1)
B = (0.38, 2.1)
C, D, poly1, a, b, c, d = carré2(A, B)
E = Midpoint(d)
F = Midpoint(a)
G = Midpoint(b)
H = Midpoint(c)
e = Segment(H, B)
f = Segment(B, E)
g = Segment(E, D)
h = Segment(D, F)
i = Segment(F, C)
j = Segment(C, G)
k = Segment(G, A)
l = Segment(A, H)
I = Intersect(i, l)
J = Intersect(g, l)
K = Intersect(g, j)
L = Intersect(e, j)
M = Intersect(e, h)
N = Intersect(h, k)
O = Intersect(f, k)
P = Intersect(f, i)
m = Segment(K, P)
n = Segment(P, M)
p = Segment(M, J)
q = Segment(J, O)
r = Segment(O, L)
s = Segment(L, I)
t = Segment(I, N)
a1 = Segment(N, K)
Q = Intersect(m, p)
R = Intersect(m, s)
S = Intersect(q, s)
T = Intersect(m, q)
U = Intersect(t, m)
V = Intersect(q, t)
W = Intersect(n, q)
Z = Intersect(n, t)
A1 = Intersect(r, t)
B1 = Intersect(n, r)
C1 = Intersect(r, a1)
D1 = Intersect(p, a1)
E1 = Intersect(p, s)
F1 = Intersect(s, a1)
G1 = Intersect(p, r)
H1 = Intersect(n, a1)
poly2, e1, r_1, t_1, v, z, b1, c1, d1 = Polygon(E1, R, T, V, Z, B1, C1, D1)
poly3, k_1, q_1, e1_1, f1 = Polygon(K, Q, E1, F1)
poly4, j_1, s_1, r_2, q_2 = Polygon(J, S, R, Q)
poly5, i_1, s_2, t_2, u = Polygon(I, S, T, U)
poly6, p_1, u_1, v_1, w = Polygon(P, U, V, W)
poly7, o, w_1, z_1, a1_1 = Polygon(O, W, Z, A1)
poly8, a1_2, n_1, h1, b1_1 = Polygon(A1, N, H1, B1)
poly9, h1_1, m_1, g1, c1_1 = Polygon(H1, M, G1, C1)
poly10, g1_1, l_1, f1_1, d1_1 = Polygon(G1, L, F1, D1)
I1 = Intersect(g, i)
J1 = Intersect(f, l)
K1 = Intersect(i, k)
L1 = Intersect(f, h)
M1 = Intersect(e, k)
N1 = Intersect(h, j)
O1 = Intersect(e, g)
P1 = Intersect(j, l)
poly11, c_1, i1, e_1, j1, a_1, k1, f_1, l1, b_1, m1, g_1, n1, d_1, o1, h_1, p1 = Polygon(C, I1, E, J1, A, K1, F, L1, B, M1, G, N1, D, O1, H, P1)
Q1 = (3.14, -3.48)
R1 = (12.22, -3.48)
S1, T1, poly12, q1, r1, s1, t1 = carré2(Q1, R1)
U1 = Midpoint(t1)
V1 = Midpoint(s1)
W1 = Midpoint(r1)
Z1 = Midpoint(q1)

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)