Ver

C = (7.0600000000000005, -1.3800000000000001)
B = (6, 2)
A = (5.64, 0.02)
polígono1, c, a, b = Polygon(A, B, C)
d, e, f = Malfatti(polígono1)
D = Midpoint(a)
E = Midpoint(c)
F = Midpoint(b)
A' = Mirror(A, D)
B' = Mirror(B, D)
C' = Mirror(C, D)
polígono1', c', a', b' = Polygon(A', B', C')
A'_1 = Mirror(A, F)
B'_1 = Mirror(B, F)
C'_1 = Mirror(C, F)
polígono1'_1, c'_1, a'_1, b'_1 = Polygon(A'_1, B'_1, C'_1)
A'_2 = Mirror(A, E)
B'_2 = Mirror(B, E)
C'_2 = Mirror(C, E)
polígono1'_2, c'_2, a'_2, b'_2 = Polygon(A'_2, B'_2, C'_2)
G = Midpoint(b')
H = Midpoint(c')
I = Midpoint(c'_1)
J = Midpoint(a'_1)
K = Midpoint(b'_2)
L = Midpoint(a'_2)
M = Mirror(A'_2, K)
N = Mirror(B'_2, K)
O = Mirror(C'_2, K)
polígono2, o, m, n = Polygon(M, N, O)
P = Mirror(A'_2, L)
Q = Mirror(B'_2, L)
R = Mirror(C'_2, L)
polígono3, r, p, q = Polygon(P, Q, R)
S = Mirror(A'_1, J)
T = Mirror(B'_1, J)
U = Mirror(C'_1, J)
polígono4, u, s, t = Polygon(S, T, U)
V = Mirror(A'_1, I)
W = Mirror(B'_1, I)
Z = Mirror(C'_1, I)
polígono5, z, v, w = Polygon(V, W, Z)
A'' = Mirror(A', H)
B'' = Mirror(B', H)
C'' = Mirror(C', H)
polígono1'', c'', a'', b'' = Polygon(A'', B'', C'')
A''_1 = Mirror(A', G)
B''_1 = Mirror(B', G)
C''_1 = Mirror(C', G)
polígono1''_1, c''_1, a''_1, b''_1 = Polygon(A''_1, B''_1, C''_1)
A_1 = Midpoint(m)
B_1 = Midpoint(o)
C_1 = Midpoint(r)
D_1 = Midpoint(q)
E_1 = Midpoint(t)
F_1 = Midpoint(w)
G_1 = Midpoint(b'')
H_1 = Midpoint(a'')
I_1 = Midpoint(a''_1)
M' = Mirror(M, B_1)
N' = Mirror(N, B_1)
O' = Mirror(O, B_1)
polígono2', o', m', n' = Polygon(M', N', O')
M'_1 = Mirror(M, A_1)
N'_1 = Mirror(N, A_1)
O'_1 = Mirror(O, A_1)
polígono2'_1, o'_1, m'_1, n'_1 = Polygon(M'_1, N'_1, O'_1)
P' = Mirror(P, C_1)
Q' = Mirror(Q, C_1)
R' = Mirror(R, C_1)
polígono3', r', p', q' = Polygon(P', Q', R')
P'_1 = Mirror(P, D_1)
Q'_1 = Mirror(Q, D_1)
R'_1 = Mirror(R, D_1)
polígono3'_1, r'_1, p'_1, q'_1 = Polygon(P'_1, Q'_1, R'_1)
S' = Mirror(S, E_1)
T' = Mirror(T, E_1)
U' = Mirror(U, E_1)
polígono4', u', s', t' = Polygon(S', T', U')
V' = Mirror(V, F_1)
W' = Mirror(W, F_1)
Z' = Mirror(Z, F_1)
polígono5', z', v', w' = Polygon(V', W', Z')
V'_1 = Mirror(V, G_1)
W'_1 = Mirror(W, G_1)
Z'_1 = Mirror(Z, G_1)
polígono5'_1, z'_1, v'_1, w'_1 = Polygon(V'_1, W'_1, Z'_1)
A''' = Mirror(A'', G_1)
B''' = Mirror(B'', G_1)
C''' = Mirror(C'', G_1)
polígono1''', c''', a''', b''' = Polygon(A''', B''', C''')
J_1 = Mirror(A''_1, I_1)
K_1 = Mirror(B''_1, I_1)
L_1 = Mirror(C''_1, I_1)
polígono6, l_1, j_1, k_1 = Polygon(J_1, K_1, L_1)
M_1 = Midpoint(m')
N_1 = Midpoint(l_1)
O_1 = Midpoint(v')
M'' = Mirror(M', M_1)
N'' = Mirror(N', M_1)
O'' = Mirror(O', M_1)
polígono2'', o'', m'', n'' = Polygon(M'', N'', O'')
P_1 = Mirror(J_1, N_1)
Q_1 = Mirror(K_1, N_1)
R_1 = Mirror(L_1, N_1)
polígono6', r_1, p_1, q_1 = Polygon(P_1, Q_1, R_1)
V'' = Mirror(V', O_1)
W'' = Mirror(W', O_1)
Z'' = Mirror(Z', O_1)
polígono5'', z'', v'', w'' = Polygon(V'', W'', Z'')
g = false
h, k, c_1 = Malfatti(polígono2'_1)
d_1, e_1, f_1 = Malfatti(polígono1''_1)
g_1, h_1, s_1 = Malfatti(polígono1')
t_1, c_2, d_2 = Malfatti(polígono5'_1)
e_2, f_2, g_2 = Malfatti(polígono6')
h_2, k_2, p_2 = Malfatti(polígono6)
q_2, r_2, s_2 = Malfatti(polígono1'')
t_2, c_3, d_3 = Malfatti(polígono1'_1)
e_3, f_3, g_3 = Malfatti(polígono1'_2)
h_3, k_3, p_3 = Malfatti(polígono2)
q_3, r_3, s_3 = Malfatti(polígono2')
t_3, c_4, d_4 = Malfatti(polígono2'')
e_4, f_4, g_4 = Malfatti(polígono3')
h_4, k_4, p_4 = Malfatti(polígono3)
q_4, r_4, s_4 = Malfatti(polígono3'_1)
t_4, c_5, d_5 = Malfatti(polígono4)
e_5, f_5, g_5 = Malfatti(polígono4')
h_5, k_5, p_5 = Malfatti(polígono5'')
q_5, r_5, s_5 = Malfatti(polígono5')
t_5, c_6, d_6 = Malfatti(polígono5)
e_6, f_6, g_6 = Malfatti(polígono1''')
S_1 = Midpoint(n')
T_1 = Midpoint(n'_1)
U_1 = Midpoint(k_1)
V_1 = Midpoint(p_1)
W_1 = Midpoint(z'_1)
Z_1 = Midpoint(c''')
A_2 = Midpoint(z')
B_2 = Midpoint(w'')
C_2 = Midpoint(s')
D_2 = Midpoint(p'_1)
E_2 = Midpoint(p')
F_2 = Midpoint(o'')
G_2 = Mirror(A''', Z_1)
H_2 = Mirror(B''', Z_1)
I_2 = Mirror(C''', Z_1)
polígono7, i_2, g_7, h_6 = Polygon(G_2, H_2, I_2)
J_2 = Mirror(V'_1, W_1)
K_2 = Mirror(W'_1, W_1)
L_2 = Mirror(Z'_1, W_1)
polígono8, l_2, j_2, k_6 = Polygon(J_2, K_2, L_2)
M_2 = Mirror(P_1, V_1)
N_2 = Mirror(Q_1, V_1)
O_2 = Mirror(R_1, V_1)
polígono6'', o_2, m_2, n_2 = Polygon(M_2, N_2, O_2)
P_2 = Mirror(J_1, U_1)
Q_2 = Mirror(K_1, U_1)
R_2 = Mirror(L_1, U_1)
polígono6'_1, r_6, p_6, q_6 = Polygon(P_2, Q_2, R_2)
S_2 = Mirror(M'_1, T_1)
T_2 = Mirror(N'_1, T_1)
U_2 = Mirror(O'_1, T_1)
polígono9, u_2, s_6, t_6 = Polygon(S_2, T_2, U_2)
M''_1 = Mirror(M', S_1)
N''_1 = Mirror(N', S_1)
O''_1 = Mirror(O', S_1)
polígono2''_1, o''_1, m''_1, n''_1 = Polygon(M''_1, N''_1, O''_1)
M''' = Mirror(M'', F_2)
N''' = Mirror(N'', F_2)
O''' = Mirror(O'', F_2)
polígono2''', o''', m''', n''' = Polygon(M''', N''', O''')
P'' = Mirror(P', E_2)
Q'' = Mirror(Q', E_2)
R'' = Mirror(R', E_2)
polígono3'', r'', p'', q'' = Polygon(P'', Q'', R'')
V_2 = Mirror(P'_1, D_2)
W_2 = Mirror(Q'_1, D_2)
Z_2 = Mirror(R'_1, D_2)
polígono10, z_2, v_2, w_2 = Polygon(V_2, W_2, Z_2)
S'' = Mirror(S', C_2)
T'' = Mirror(T', C_2)
U'' = Mirror(U', C_2)
polígono4'', u'', s'', t'' = Polygon(S'', T'', U'')
V''' = Mirror(V'', B_2)
W''' = Mirror(W'', B_2)
Z''' = Mirror(Z'', B_2)
polígono5''', z''', v''', w''' = Polygon(V''', W''', Z''')
V''_1 = Mirror(V', A_2)
W''_1 = Mirror(W', A_2)
Z''_1 = Mirror(Z', A_2)
polígono5''_1, z''_1, v''_1, w''_1 = Polygon(V''_1, W''_1, Z''_1)
A_3 = Midpoint(m''_1)
B_3 = Midpoint(s_6)
C_3 = Midpoint(p_6)
D_3 = Midpoint(n_2)
E_3 = Midpoint(o_2)
F_3 = Midpoint(j_2)
G_3 = Midpoint(k_6)
H_3 = Midpoint(h_6)
I_3 = Midpoint(w''_1)
J_3 = Midpoint(z''')
K_3 = Midpoint(v''')
L_3 = Midpoint(t'')
M_3 = Midpoint(u'')
N_3 = Midpoint(z_2)
O_3 = Midpoint(r'')
P_3 = Midpoint(m''')
Q_3 = Midpoint(n''')
R_3 = Midpoint(o''_1)
S_3 = Mirror(M''_1, R_3)
T_3 = Mirror(N''_1, R_3)
U_3 = Mirror(O''_1, R_3)
polígono11, u_3, s_7, t_7 = Polygon(S_3, T_3, U_3)
V_3 = Mirror(M''_1, A_3)
W_3 = Mirror(N''_1, A_3)
Z_3 = Mirror(O''_1, A_3)
polígono12, z_3, v_3, w_3 = Polygon(V_3, W_3, Z_3)
A_4 = Mirror(S_2, B_3)
B_4 = Mirror(T_2, B_3)
C_4 = Mirror(U_2, B_3)
polígono9', c_7, a_4, b_4 = Polygon(A_4, B_4, C_4)
D_4 = Mirror(P_2, C_3)
E_4 = Mirror(Q_2, C_3)
F_4 = Mirror(R_2, C_3)
polígono13, f_7, d_7, e_7 = Polygon(D_4, E_4, F_4)
G_4 = Mirror(M_2, D_3)
H_4 = Mirror(N_2, D_3)
I_4 = Mirror(O_2, D_3)
polígono6''', i_4, g_8, h_7 = Polygon(G_4, H_4, I_4)
J_4 = Mirror(M_2, E_3)
K_4 = Mirror(N_2, E_3)
L_4 = Mirror(O_2, E_3)
polígono6'''_1, l_4, j_4, k_7 = Polygon(J_4, K_4, L_4)
M_4 = Mirror(J_2, F_3)
N_4 = Mirror(K_2, F_3)
O_4 = Mirror(L_2, F_3)
polígono8', o_4, m_4, n_4 = Polygon(M_4, N_4, O_4)
P_4 = Mirror(J_2, G_3)
Q_4 = Mirror(K_2, G_3)
R_4 = Mirror(L_2, G_3)
polígono8'_1, r_7, p_7, q_7 = Polygon(P_4, Q_4, R_4)
S_4 = Mirror(G_2, H_3)
T_4 = Mirror(H_2, H_3)
U_4 = Mirror(I_2, H_3)
polígono7', u_4, s_8, t_8 = Polygon(S_4, T_4, U_4)
V_4 = Mirror(V''_1, I_3)
W_4 = Mirror(W''_1, I_3)
Z_4 = Mirror(Z''_1, I_3)
polígono14, z_4, v_4, w_4 = Polygon(V_4, W_4, Z_4)
A_5 = Mirror(V''', J_3)
B_5 = Mirror(W''', J_3)
C_5 = Mirror(Z''', J_3)
polígono15, c_8, a_5, b_5 = Polygon(A_5, B_5, C_5)
S''' = Mirror(S'', L_3)
T''' = Mirror(T'', L_3)
U''' = Mirror(U'', L_3)
polígono4''', u''', s''', t''' = Polygon(S''', T''', U''')
D_5 = Mirror(V''', K_3)
E_5 = Mirror(W''', K_3)
F_5 = Mirror(Z''', K_3)
polígono16, f_8, d_8, e_8 = Polygon(D_5, E_5, F_5)
S'''_1 = Mirror(S'', M_3)
T'''_1 = Mirror(T'', M_3)
U'''_1 = Mirror(U'', M_3)
polígono4'''_1, u'''_1, s'''_1, t'''_1 = Polygon(S'''_1, T'''_1, U'''_1)
G_5 = Mirror(V_2, N_3)
H_5 = Mirror(W_2, N_3)
I_5 = Mirror(Z_2, N_3)
polígono10', i_5, g_9, h_8 = Polygon(G_5, H_5, I_5)
P''' = Mirror(P'', O_3)
Q''' = Mirror(Q'', O_3)
R''' = Mirror(R'', O_3)
polígono3''', r''', p''', q''' = Polygon(P''', Q''', R''')
J_5 = Mirror(M''', P_3)
K_5 = Mirror(N''', P_3)
L_5 = Mirror(O''', P_3)
polígono17, l_5, j_5, k_8 = Polygon(J_5, K_5, L_5)
M_5 = Mirror(M''', Q_3)
N_5 = Mirror(N''', Q_3)
O_5 = Mirror(O''', Q_3)
polígono18, o_5, m_5, n_5 = Polygon(M_5, N_5, O_5)
P_5 = Midpoint(l_5)
Q_5 = Midpoint(o_5)
R_5 = Mirror(M_5, Q_5)
S_5 = Mirror(N_5, Q_5)
T_5 = Mirror(O_5, Q_5)
polígono18', t_9, r_8, s_9 = Polygon(R_5, S_5, T_5)
U_5 = Mirror(J_5, P_5)
V_5 = Mirror(K_5, P_5)
W_5 = Mirror(L_5, P_5)
polígono17', w_5, u_5, v_5 = Polygon(U_5, V_5, W_5)
Z_5 = Midpoint(g_9)
A_6 = Mirror(G_5, Z_5)
B_6 = Mirror(H_5, Z_5)
C_6 = Mirror(I_5, Z_5)
polígono10'', c_9, a_6, b_6 = Polygon(A_6, B_6, C_6)
D_6 = Midpoint(c_9)
E_6 = Mirror(A_6, D_6)
F_6 = Mirror(B_6, D_6)
G_6 = Mirror(C_6, D_6)
polígono10''', g_{10}, e_9, f_9 = Polygon(E_6, F_6, G_6)
H_6 = Midpoint(f_9)
I_6 = Mirror(E_6, H_6)
J_6 = Mirror(F_6, H_6)
K_6 = Mirror(G_6, H_6)
polígono19, k_9, i_6, j_6 = Polygon(I_6, J_6, K_6)
L_6 = Midpoint(b_6)
M_6 = Mirror(A_6, L_6)
N_6 = Mirror(B_6, L_6)
O_6 = Mirror(C_6, L_6)
polígono10'''_1, o_6, m_6, n_6 = Polygon(M_6, N_6, O_6)
P_6 = Midpoint(v_5)
Q_6 = Mirror(U_5, P_6)
R_6 = Mirror(V_5, P_6)
S_6 = Mirror(W_5, P_6)
polígono17'', s_{10}, q_8, r_9 = Polygon(Q_6, R_6, S_6)
T_6 = Midpoint(m_6)
U_6 = Mirror(M_6, T_6)
V_6 = Mirror(N_6, T_6)
W_6 = Mirror(O_6, T_6)
polígono20, w_6, u_6, v_6 = Polygon(U_6, V_6, W_6)
Z_6 = Midpoint(v_6)
A_7 = Mirror(U_6, Z_6)
B_7 = Mirror(V_6, Z_6)
C_7 = Mirror(W_6, Z_6)
polígono20', c_{10}, a_7, b_7 = Polygon(A_7, B_7, C_7)
D_7 = Midpoint(o_6)
E_7 = Midpoint(c_{10})
F_7 = Mirror(M_6, D_7)
G_7 = Mirror(N_6, D_7)
H_7 = Mirror(O_6, D_7)
polígono21, h_9, f_{10}, g_{11} = Polygon(F_7, G_7, H_7)
I_7 = Mirror(A_7, E_7)
J_7 = Mirror(B_7, E_7)
K_7 = Mirror(C_7, E_7)
polígono20'', k_{10}, i_7, j_7 = Polygon(I_7, J_7, K_7)
L_7 = Midpoint(i_7)
M_7 = Mirror(I_7, L_7)
N_7 = Mirror(J_7, L_7)
O_7 = Mirror(K_7, L_7)
polígono20''', o_7, m_7, n_7 = Polygon(M_7, N_7, O_7)
P_7 = Midpoint(o_7)
Q_7 = Mirror(M_7, P_7)
R_7 = Mirror(N_7, P_7)
S_7 = Mirror(O_7, P_7)
polígono22, s_{11}, q_9, r_{10} = Polygon(Q_7, R_7, S_7)
T_7 = Midpoint(o_4)
U_7 = Mirror(M_4, T_7)
V_7 = Mirror(N_4, T_7)
W_7 = Mirror(O_4, T_7)
polígono8'', w_7, u_7, v_7 = Polygon(U_7, V_7, W_7)
Z_7 = Midpoint(j_4)
A_8 = Mirror(J_4, Z_7)
B_8 = Mirror(K_4, Z_7)
C_8 = Mirror(L_4, Z_7)
polígono23, c_{11}, a_8, b_8 = Polygon(A_8, B_8, C_8)
D_8 = Midpoint(b_8)
E_8 = Mirror(A_8, D_8)
F_8 = Mirror(B_8, D_8)
G_8 = Mirror(C_8, D_8)
polígono23', g_{12}, e_{10}, f_{11} = Polygon(E_8, F_8, G_8)
H_8 = Midpoint(g_8)
I_8 = Mirror(G_4, H_8)
J_8 = Mirror(H_4, H_8)
K_8 = Mirror(I_4, H_8)
polígono24, k_{11}, i_8, j_8 = Polygon(I_8, J_8, K_8)
L_8 = Midpoint(r_7)
M_8 = Midpoint(u_4)
N_8 = Midpoint(z_4)
O_8 = Mirror(V_4, N_8)
P_8 = Mirror(W_4, N_8)
Q_8 = Mirror(Z_4, N_8)
polígono14', q_{10}, o_8, p_8 = Polygon(O_8, P_8, Q_8)
R_8 = Mirror(S_4, M_8)
S_8 = Mirror(T_4, M_8)
T_8 = Mirror(U_4, M_8)
polígono7'', t_{10}, r_{11}, s_{12} = Polygon(R_8, S_8, T_8)
U_8 = Mirror(P_4, L_8)
V_8 = Mirror(Q_4, L_8)
W_8 = Mirror(R_4, L_8)
polígono25, w_8, u_8, v_8 = Polygon(U_8, V_8, W_8)
Z_8 = Midpoint(o_8)
A_9 = Midpoint(r_{11})
B_9 = Midpoint(u_8)
C_9 = Mirror(U_8, B_9)
D_9 = Mirror(V_8, B_9)
E_9 = Mirror(W_8, B_9)
polígono25', e_{11}, c_{12}, d_9 = Polygon(C_9, D_9, E_9)
F_9 = Mirror(R_8, A_9)
G_9 = Mirror(S_8, A_9)
H_9 = Mirror(T_8, A_9)
polígono7''', h_{10}, f_{12}, g_{13} = Polygon(F_9, G_9, H_9)
I_9 = Mirror(O_8, Z_8)
J_9 = Mirror(P_8, Z_8)
K_9 = Mirror(Q_8, Z_8)
polígono14'', k_{12}, i_9, j_9 = Polygon(I_9, J_9, K_9)
L_9 = Midpoint(h_{10})
M_9 = Mirror(F_9, L_9)
N_9 = Mirror(G_9, L_9)
O_9 = Mirror(H_9, L_9)
polígono26, o_9, m_9, n_9 = Polygon(M_9, N_9, O_9)
P_9 = Midpoint(n_9)
Q_9 = Midpoint(k_{12})
R_9 = Mirror(I_9, Q_9)
S_9 = Mirror(J_9, Q_9)
T_9 = Mirror(K_9, Q_9)
polígono14''', t_{11}, r_{12}, s_{13} = Polygon(R_9, S_9, T_9)
U_9 = Mirror(M_9, P_9)
V_9 = Mirror(N_9, P_9)
W_9 = Mirror(O_9, P_9)
polígono26', w_9, u_9, v_9 = Polygon(U_9, V_9, W_9)
Z_9 = Midpoint(s_9)
A_{10} = Midpoint(t_7)
B_{10} = Midpoint(w_3)
C_{10} = Midpoint(b_4)
D_{10} = Midpoint(e_7)
E_{10} = Midpoint(j_8)
F_{10} = Midpoint(j_7)
G_{10} = Midpoint(r_{10})
H_{10} = Midpoint(e_8)
I_{10} = Midpoint(b_5)
J_{10} = Midpoint(p_8)
K_{10} = Midpoint(s_{13})
L_{10} = Mirror(R_5, Z_9)
M_{10} = Mirror(S_5, Z_9)
N_{10} = Mirror(T_5, Z_9)
polígono18'', n_{10}, l_{10}, m_{10} = Polygon(L_{10}, M_{10}, N_{10})
O_{10} = Mirror(S_3, A_{10})
P_{10} = Mirror(T_3, A_{10})
Q_{10} = Mirror(U_3, A_{10})
polígono11', q_{11}, o_{10}, p_{10} = Polygon(O_{10}, P_{10}, Q_{10})
R_{10} = Mirror(V_3, B_{10})
S_{10} = Mirror(W_3, B_{10})
T_{10} = Mirror(Z_3, B_{10})
polígono12', t_{12}, r_{13}, s_{14} = Polygon(R_{10}, S_{10}, T_{10})
U_{10} = Mirror(A_4, C_{10})
V_{10} = Mirror(B_4, C_{10})
W_{10} = Mirror(C_4, C_{10})
polígono9'', w_{10}, u_{10}, v_{10} = Polygon(U_{10}, V_{10}, W_{10})
Z_{10} = Mirror(D_4, D_{10})
A_{11} = Mirror(E_4, D_{10})
B_{11} = Mirror(F_4, D_{10})
polígono13', b_{11}, z_{10}, a_{11} = Polygon(Z_{10}, A_{11}, B_{11})
C_{11} = Mirror(I_8, E_{10})
D_{11} = Mirror(J_8, E_{10})
E_{11} = Mirror(K_8, E_{10})
polígono24', e_{12}, c_{13}, d_{11} = Polygon(C_{11}, D_{11}, E_{11})
F_{11} = Mirror(R_9, K_{10})
G_{11} = Mirror(S_9, K_{10})
H_{11} = Mirror(T_9, K_{10})
polígono27, h_{11}, f_{13}, g_{14} = Polygon(F_{11}, G_{11}, H_{11})
I_{11} = Mirror(O_8, J_{10})
J_{11} = Mirror(P_8, J_{10})
K_{11} = Mirror(Q_8, J_{10})
polígono14''_1, k_{13}, i_{11}, j_{11} = Polygon(I_{11}, J_{11}, K_{11})
L_{11} = Mirror(A_5, I_{10})
M_{11} = Mirror(B_5, I_{10})
N_{11} = Mirror(C_5, I_{10})
polígono15', n_{11}, l_{11}, m_{11} = Polygon(L_{11}, M_{11}, N_{11})
O_{11} = Mirror(D_5, H_{10})
P_{11} = Mirror(E_5, H_{10})
Q_{11} = Mirror(F_5, H_{10})
polígono16', q_{12}, o_{11}, p_{11} = Polygon(O_{11}, P_{11}, Q_{11})
R_{11} = Mirror(Q_7, G_{10})
S_{11} = Mirror(R_7, G_{10})
T_{11} = Mirror(S_7, G_{10})
polígono22', t_{13}, r_{14}, s_{15} = Polygon(R_{11}, S_{11}, T_{11})
U_{11} = Mirror(I_7, F_{10})
V_{11} = Mirror(J_7, F_{10})
W_{11} = Mirror(K_7, F_{10})
polígono20'''_1, w_{11}, u_{11}, v_{11} = Polygon(U_{11}, V_{11}, W_{11})
Z_{11} = Midpoint(n_{10})
A_{12} = Mirror(L_{10}, Z_{11})
B_{12} = Mirror(M_{10}, Z_{11})
C_{12} = Mirror(N_{10}, Z_{11})
polígono18''', c_{14}, a_{12}, b_{12} = Polygon(A_{12}, B_{12}, C_{12})
D_{12} = Midpoint(c_{13})
E_{12} = Mirror(C_{11}, D_{12})
F_{12} = Mirror(D_{11}, D_{12})
G_{12} = Mirror(E_{11}, D_{12})
polígono24'', g_{15}, e_{13}, f_{14} = Polygon(E_{12}, F_{12}, G_{12})
H_{12} = Midpoint(l_{10})
I_{12} = Midpoint(o_{10})
J_{12} = Midpoint(r_{13})
K_{12} = Midpoint(u_{10})
L_{12} = Midpoint(z_{10})
M_{12} = Mirror(L_{10}, H_{12})
N_{12} = Mirror(M_{10}, H_{12})
O_{12} = Mirror(N_{10}, H_{12})
polígono18'''_1, o_{12}, m_{12}, n_{12} = Polygon(M_{12}, N_{12}, O_{12})
P_{12} = Mirror(O_{10}, I_{12})
Q_{12} = Mirror(P_{10}, I_{12})
R_{12} = Mirror(Q_{10}, I_{12})
polígono11'', r_{15}, p_{12}, q_{13} = Polygon(P_{12}, Q_{12}, R_{12})
S_{12} = Mirror(R_{10}, J_{12})
T_{12} = Mirror(S_{10}, J_{12})
U_{12} = Mirror(T_{10}, J_{12})
polígono12'', u_{12}, s_{16}, t_{14} = Polygon(S_{12}, T_{12}, U_{12})
V_{12} = Mirror(U_{10}, K_{12})
W_{12} = Mirror(V_{10}, K_{12})
Z_{12} = Mirror(W_{10}, K_{12})
polígono9''', z_{12}, v_{12}, w_{12} = Polygon(V_{12}, W_{12}, Z_{12})
A_{13} = Mirror(Z_{10}, L_{12})
B_{13} = Mirror(A_{11}, L_{12})
C_{13} = Mirror(B_{11}, L_{12})
polígono13'', c_{15}, a_{13}, b_{13} = Polygon(A_{13}, B_{13}, C_{13})
D_{13} = Midpoint(w_{11})
E_{13} = Midpoint(t_{13})
F_{13} = Midpoint(q_{12})
G_{13} = Midpoint(n_{11})
H_{13} = Midpoint(k_{13})
I_{13} = Midpoint(h_{11})
J_{13} = Midpoint(u_{11})
K_{13} = Mirror(U_{11}, J_{13})
L_{13} = Mirror(V_{11}, J_{13})
M_{13} = Mirror(W_{11}, J_{13})
polígono28, m_{13}, k_{14}, l_{13} = Polygon(K_{13}, L_{13}, M_{13})
N_{13} = Mirror(U_{11}, D_{13})
O_{13} = Mirror(V_{11}, D_{13})
P_{13} = Mirror(W_{11}, D_{13})
polígono29, p_{13}, n_{13}, o_{13} = Polygon(N_{13}, O_{13}, P_{13})
Q_{13} = Mirror(R_{11}, E_{13})
R_{13} = Mirror(S_{11}, E_{13})
S_{13} = Mirror(T_{11}, E_{13})
polígono22'', s_{17}, q_{14}, r_{16} = Polygon(Q_{13}, R_{13}, S_{13})
T_{13} = Mirror(O_{11}, F_{13})
U_{13} = Mirror(P_{11}, F_{13})
V_{13} = Mirror(Q_{11}, F_{13})
polígono16'', v_{13}, t_{15}, u_{13} = Polygon(T_{13}, U_{13}, V_{13})
W_{13} = Mirror(L_{11}, G_{13})
Z_{13} = Mirror(M_{11}, G_{13})
A_{14} = Mirror(N_{11}, G_{13})
polígono15'', a_{14}, w_{13}, z_{13} = Polygon(W_{13}, Z_{13}, A_{14})
B_{14} = Mirror(I_{11}, H_{13})
C_{14} = Mirror(J_{11}, H_{13})
D_{14} = Mirror(K_{11}, H_{13})
polígono30, d_{14}, b_{14}, c_{16} = Polygon(B_{14}, C_{14}, D_{14})
E_{14} = Mirror(F_{11}, I_{13})
F_{14} = Mirror(G_{11}, I_{13})
G_{14} = Mirror(H_{11}, I_{13})
polígono27', g_{16}, e_{14}, f_{15} = Polygon(E_{14}, F_{14}, G_{14})
p_9, d_{10}, d_{12} = Malfatti(polígono9')
h_{12}, d_{13}, h_{13} = Malfatti(polígono6'_1)
h_{14}, p_{14}, d_{15} = Malfatti(polígono13)
e_{15}, h_{15}, k_{15} = Malfatti(polígono6''')
p_{15}, q_{15}, d_{16} = Malfatti(polígono24)
e_{16}, f_{16}, h_{16} = Malfatti(polígono23')
k_{16}, p_{16}, q_{16} = Malfatti(polígono24'')
t_{16}, c_{17}, d_{17} = Malfatti(polígono24')
e_{17}, f_{17}, g_{17} = Malfatti(polígono13'')
h_{17}, k_{17}, p_{17} = Malfatti(polígono13')
q_{17}, r_{17}, t_{17} = Malfatti(polígono9''')
c_{18}, d_{18}, e_{18} = Malfatti(polígono9'')
f_{18}, g_{18}, h_{18} = Malfatti(polígono12'')
k_{18}, p_{18}, q_{18} = Malfatti(polígono12')
r_{18}, s_{18}, t_{18} = Malfatti(polígono11'')
c_{19}, d_{19}, e_{19} = Malfatti(polígono11')
f_{19}, g_{19}, h_{19} = Malfatti(polígono18'''_1)
k_{19}, p_{19}, q_{19} = Malfatti(polígono18'')
r_{19}, s_{19}, t_{19} = Malfatti(polígono18''')
c_{20}, d_{20}, e_{20} = Malfatti(polígono9)
f_{20}, g_{20}, h_{20} = Malfatti(polígono12)
k_{20}, p_{20}, q_{20} = Malfatti(polígono2''_1)
r_{20}, s_{20}, t_{20} = Malfatti(polígono11)
c_{21}, d_{21}, e_{21} = Malfatti(polígono18)
f_{21}, g_{21}, h_{21} = Malfatti(polígono18')
k_{21}, p_{21}, q_{21} = Malfatti(polígono17'')
r_{21}, s_{21}, t_{21} = Malfatti(polígono17)
c_{22}, d_{22}, e_{22} = Malfatti(polígono2''')
f_{22}, g_{22}, h_{22} = Malfatti(polígono17')
k_{22}, p_{22}, q_{22} = Malfatti(polígono3''')
r_{22}, s_{22}, t_{22} = Malfatti(polígono3'')
c_{23}, d_{23}, e_{23} = Malfatti(polígono10')
f_{23}, g_{23}, h_{23} = Malfatti(polígono19)
k_{23}, p_{23}, q_{23} = Malfatti(polígono10''')
r_{23}, s_{23}, t_{23} = Malfatti(polígono10'')
c_{24}, d_{24}, e_{24} = Malfatti(polígono10)
f_{24}, g_{24}, h_{24} = Malfatti(polígono6'')
k_{24}, p_{24}, q_{24} = Malfatti(polígono23)
r_{24}, s_{24}, t_{24} = Malfatti(polígono6'''_1)
c_{25}, d_{25}, e_{25} = Malfatti(polígono8')
f_{25}, g_{25}, h_{25} = Malfatti(polígono8'')
k_{25}, p_{25}, q_{25} = Malfatti(polígono8)
r_{25}, s_{25}, t_{25} = Malfatti(polígono8'_1)
c_{26}, d_{26}, e_{26} = Malfatti(polígono25')
f_{26}, g_{26}, h_{26} = Malfatti(polígono25)
k_{26}, p_{26}, q_{26} = Malfatti(polígono7)
r_{26}, s_{26}, t_{26} = Malfatti(polígono7')
c_{27}, d_{27}, e_{27} = Malfatti(polígono7'')
f_{27}, g_{27}, h_{27} = Malfatti(polígono7''')
k_{27}, p_{27}, q_{27} = Malfatti(polígono26)
r_{27}, s_{27}, t_{27} = Malfatti(polígono5''_1)
c_{28}, d_{28}, e_{28} = Malfatti(polígono14)
f_{28}, g_{28}, h_{28} = Malfatti(polígono14')
k_{28}, p_{28}, q_{28} = Malfatti(polígono14'')
r_{28}, s_{28}, t_{28} = Malfatti(polígono26')
c_{29}, d_{29}, e_{29} = Malfatti(polígono14''')
f_{29}, g_{29}, h_{29} = Malfatti(polígono27')
k_{29}, p_{29}, q_{29} = Malfatti(polígono27)
r_{29}, s_{29}, t_{29} = Malfatti(polígono14''_1)
c_{30}, d_{30}, e_{30} = Malfatti(polígono30)
f_{30}, g_{30}, h_{30} = Malfatti(polígono15)
k_{30}, p_{30}, q_{30} = Malfatti(polígono15')
r_{30}, s_{30}, t_{30} = Malfatti(polígono15'')
c_{31}, d_{31}, e_{31} = Malfatti(polígono5''')
f_{31}, g_{31}, h_{31} = Malfatti(polígono16)
k_{31}, p_{31}, q_{31} = Malfatti(polígono16')
r_{31}, s_{31}, t_{31} = Malfatti(polígono16'')
c_{32}, d_{32}, e_{32} = Malfatti(polígono4''')
f_{32}, g_{32}, h_{32} = Malfatti(polígono4'')
k_{32}, p_{32}, q_{32} = Malfatti(polígono4'''_1)
r_{32}, s_{32}, t_{32} = Malfatti(polígono21)
c_{33}, d_{33}, e_{33} = Malfatti(polígono10'''_1)
f_{33}, g_{33}, h_{33} = Malfatti(polígono20)
k_{33}, p_{33}, q_{33} = Malfatti(polígono20'')
r_{33}, s_{33}, t_{33} = Malfatti(polígono20''')
c_{34}, d_{34}, e_{34} = Malfatti(polígono22)
f_{34}, g_{34}, h_{34} = Malfatti(polígono22')
k_{34}, p_{34}, q_{34} = Malfatti(polígono22'')
r_{34}, s_{34}, t_{34} = Malfatti(polígono20'''_1)
c_{35}, d_{35}, e_{35} = Malfatti(polígono28)
f_{35}, g_{35}, h_{35} = Malfatti(polígono20')

Tool: Malfatti (circunferencias) (command Malfatti)
Triángulo
Input: polígono1
Output: f_2, g_2, h_2

C = (2.0799999999999983, -1.1399999999999992)
B = (3.139999999999999, -4.52)
A = (3.499999999999999, -2.5399999999999996)
polígono1, c, a, b = Polygon(A, B, C)
U = Point(c)
h, i = AngularBisector(c, b)
d_1, e_1 = AngularBisector(b, a)
I = Intersect(e_1, i)
j = AngularBisector(U, A, I)
d = AngularBisector(U, B, I)
D = Intersect(d, j)
t = OrthogonalLine(D, c)
G = Intersect(t, c)
l = AngularBisector(C, B, I)
m = AngularBisector(B, C, I)
E = Intersect(l, m)
q = AngularBisector(A, C, I)
r = AngularBisector(C, A, I)
F = Intersect(q, r)
b_1 = OrthogonalLine(F, b)
J = Intersect(b_1, b)
i_1 = Line(D, F)
K = Intersect(i_1, i)
j_1 = OrthogonalLine(K, i_1)
i' = Mirror(i, j_1)
m_1 = Line(E, F)
M = Intersect(m_1, e_1)
n_1 = OrthogonalLine(M, m_1)
p_1 = Mirror(e_1, n_1)
N = Intersect(i', p_1)
s = AngularBisector(N, G, A)
n = AngularBisector(N, J, A)
a_1 = OrthogonalLine(E, a)
H = Intersect(a_1, a)
p = AngularBisector(N, G, B)
f = AngularBisector(N, H, B)
k = AngularBisector(N, J, C)
e = AngularBisector(N, H, C)
P = Intersect(f, p)
c_2 = OrthogonalLine(P, c)
Q = Intersect(n, s)
d_2 = OrthogonalLine(Q, b)
O = Intersect(k, e)
e_2 = OrthogonalLine(O, a)
R = Intersect(c_2, c)
S = Intersect(e_2, a)
T = Intersect(d_2, b)
f_2 = Circle(O, S)
g_2 = Circle(P, R)
h_2 = Circle(Q, T)