A = (-2, -1)
B = (0, 1)
C = (5, 1)
D = (3, -1)
polígono1, a, b, c, d = Polygon(A, B, C, D)
E = (5, -1)
F = (-2, 1)
Textpolígono1: "Area  = " + polígono1 + ""
G = Point(b)
H = Intersect(b, a)
I = Point(d)
e = Segment(H, I)
J = (-2, -4)
K = (3, -4)
L = (3, -2)
M = (1.1102230246251565E-16, -2)
poly1, j, k, l, m = Polygon(J, K, L, M)
Q = Intersect(k, j)
R = (5, -2)
S = Intersect(l, k)
poly2, s, q, r = Polygon(Q, R, S)
N = Intersect(k, j)
O = (5, -2)
P = Intersect(l, k)
J_1 = (-7, -4)
K_1: J
L_1 = (-2, -2)
M_1 = (-5, -2)
poly1_1, j_1, k_1, l_1, m_1 = Polygon(J_1, K_1, L_1, M_1)
N_1 = Intersect(k_1, j_1)
O_1: M
P_1 = Intersect(l_1, k_1)
J_2: J_1
K_2: J
L_2: L_1
M_2: M_1
poly1_2, j_2, k_2, l_2, m_2 = Polygon(J_2, K_2, L_2, M_2)
Q_1 = Intersect(k_2, j_2)
R_1: M
S_1 = Intersect(l_2, k_2)
poly2_1, s_1, q_1, r_1 = Polygon(Q_1, R_1, S_1)
N_2 = Intersect(k_2, j_2)
P_2 = Intersect(l_2, k_2)
K_3: J_2
O_2: M_2
Textpoly1: "Area  = " + poly1 + ""
Textpoly21: "Area = " + poly2_1 + ""