A = Point(xAxis)
B = Point(xAxis)
poligon1, a, b, c, d, C, D = Polygon(A, B, 4)
E = Midpoint(A, B)
F = Midpoint(B, C)
G = Midpoint(C, D)
H = Midpoint(D, A)
e = Segment(D, B)
f = Segment(C, A)
g = Segment(H, B)
h = Segment(H, C)
i = Segment(G, A)
j = Segment(G, B)
k = Segment(F, D)
l = Segment(F, A)
m = Segment(E, C)
n = Segment(E, D)
I = Intersect(i, k)
J = Intersect(e, h)
K = Intersect(h, n)
poligon2, d_1, i_1, j_1, k_1 = Polygon(D, I, J, K)
L = Intersect(e, f)
D' = Rotate(D, 90*°, L)
I' = Rotate(I, 90*°, L)
J' = Rotate(J, 90*°, L)
K' = Rotate(K, 90*°, L)
poligon2', d', i', j', k' = Polygon(D', I', J', K')
D'' = Rotate(D', 90*°, L)
I'' = Rotate(I', 90*°, L)
J'' = Rotate(J', 90*°, L)
K'' = Rotate(K', 90*°, L)
poligon2'', d'', i'', j'', k'' = Polygon(D'', I'', J'', K'')
D''' = Rotate(D'', 90*°, L)
I''' = Rotate(I'', 90*°, L)
J''' = Rotate(J'', 90*°, L)
K''' = Rotate(K'', 90*°, L)
poligon2''', d''', i''', j''', k''' = Polygon(D''', I''', J''', K''')
M = Intersect(h, k)
poligon3, k'''_1, g_1, i_2, m_1 = Polygon(K''', G, I, M)
N = Rotate(K''', 90*°, L)
G' = Rotate(G, 90*°, L)
I'_1 = Rotate(I, 90*°, L)
M' = Rotate(M, 90*°, L)
poligon3', n_1, g', i'_1, m' = Polygon(N, G', I'_1, M')
N' = Rotate(N, 90*°, L)
G'' = Rotate(G', 90*°, L)
O = Rotate(I'_1, 90*°, L)
M'' = Rotate(M', 90*°, L)
poligon3'', n', g'', o, m'' = Polygon(N', G'', O, M'')
N'' = Rotate(N', 90*°, L)
G''' = Rotate(G'', 90*°, L)
O' = Rotate(O, 90*°, L)
M''' = Rotate(M'', 90*°, L)
poligon3''', n'', g''', o', m''' = Polygon(N'', G''', O', M''')
poligon4, j_2, m_2, i_3 = Polygon(M, I, J)
M'_1 = Rotate(M, 90*°, L)
I'_2 = Rotate(I, 90*°, L)
J'_1 = Rotate(J, 90*°, L)
poligon4', j'_1, m'_1, i'_2 = Polygon(M'_1, I'_2, J'_1)
P = Rotate(M'_1, 90*°, L)
Q = Rotate(I'_2, 90*°, L)
R = Rotate(J'_1, 90*°, L)
poligon4'', r, p, q = Polygon(P, Q, R)
P' = Rotate(P, 90*°, L)
Q' = Rotate(Q, 90*°, L)
R' = Rotate(R, 90*°, L)
poligon4''', r', p', q' = Polygon(P', Q', R')
M'_2 = Mirror(M, e)
I'_3 = Mirror(I, e)
J'_2 = Mirror(J, e)
poligon4'_1, j'_2, m'_2, i'_3 = Polygon(M'_2, I'_3, J'_2)
S = Mirror(M'_1, f)
T = Mirror(I'_2, f)
U = Mirror(J'_1, f)
poligon4''_1, u, s, t = Polygon(S, T, U)
P'_1 = Mirror(P, e)
Q'_1 = Mirror(Q, e)
R'_1 = Mirror(R, e)
poligon4'''_1, r'_1, p'_1, q'_1 = Polygon(P'_1, Q'_1, R'_1)
P'' = Mirror(P', f)
Q'' = Mirror(Q', f)
R'' = Mirror(R', f)
poligon5, r'', p'', q'' = Polygon(P'', Q'', R'')
poligon6, d_2, g_2, i_4 = Polygon(G, I, D)
G'_1 = Mirror(G, e)
I'_4 = Mirror(I, e)
D'_1 = Mirror(D, e)
poligon6', d'_1, g'_1, i'_4 = Polygon(G'_1, I'_4, D'_1)
V = Rotate(G'_1, 90*°, L)
W = Rotate(I'_4, 90*°, L)
Z = Rotate(D'_1, 90*°, L)
poligon6'', z, v, w = Polygon(V, W, Z)
G'_2 = Rotate(G, 90*°, L)
I'_5 = Rotate(I, 90*°, L)
D'_2 = Rotate(D, 90*°, L)
poligon6'_1, d'_2, g'_2, i'_5 = Polygon(G'_2, I'_5, D'_2)
V' = Rotate(V, 90*°, L)
W' = Rotate(W, 90*°, L)
Z' = Rotate(Z, 90*°, L)
poligon6''', z', v', w' = Polygon(V', W', Z')
V'' = Rotate(V', 90*°, L)
W'' = Rotate(W', 90*°, L)
Z'' = Rotate(Z', 90*°, L)
poligon7, z'', v'', w'' = Polygon(V'', W'', Z'')
A_1 = Rotate(G'_2, 90*°, L)
B_1 = Rotate(I'_5, 90*°, L)
C_1 = Rotate(D'_2, 90*°, L)
poligon8, c_1, a_1, b_1 = Polygon(A_1, B_1, C_1)
D_1 = Rotate(A_1, 90*°, L)
E_1 = Rotate(B_1, 90*°, L)
F_1 = Rotate(C_1, 90*°, L)
poligon8', f_1, d_3, e_1 = Polygon(D_1, E_1, F_1)
poligon9, j'''_1, m_3, j_3, l_1 = Polygon(J''', M, J, L)
G_1 = Mirror(J''', L)
M'_3 = Mirror(M, L)
J'_3 = Mirror(J, L)
L' = Mirror(L, L)
poligon9', g_3, m'_3, j'_3, l' = Polygon(G_1, M'_3, J'_3, L')
H_1 = Rotate(J''', 90*°, L)
M'_4 = Rotate(M, 90*°, L)
J'_4 = Rotate(J, 90*°, L)
L'_1 = Rotate(L, 90*°, L)
poligon9'_1, h_1, m'_4, j'_4, l'_1 = Polygon(H_1, M'_4, J'_4, L'_1)
I_1 = Mirror(H_1, L)
J_1 = Mirror(M'_4, L)
K_1 = Mirror(J'_4, L)
L_1 = Mirror(L'_1, L)
poligon10, i_5, j_4, k_2, l_2 = Polygon(I_1, J_1, K_1, L_1)