A = (0.16, 0.94)
B = (1.68, 0.94)
poly1, a, b, c, d, e, C, D, E = Polygon(A, B, 5)
h, I, i = Tool2(D, C)
j, J, k = Tool2(E, D)
l, K, m = Tool2(A, E)
n, L, p = Tool2(B, A)
q, M, r = Tool2(C, B)
N = Point(i)
poly2, d_1, c_1, n_1 = Polygon(C, N, D)
O = Point(k)
poly3, o, e_1, d_2 = Polygon(E, D, O)
P = Point(m)
poly4, a_1, e_2, p_1 = Polygon(E, P, A)
Q = Point(p)
poly5, b_1, a_2, q_1 = Polygon(A, Q, B)
R = Point(r)
poly6, c_2, b_2, r_1 = Polygon(B, R, C)
f = Distance(c_1, d_1)
g = Distance(e_1, c)
s = Distance(d, d_2)
t = Distance(e_2, a_1)
u = Distance(b_1, e)
v = Distance(a, a_2)
w = Distance(b_2, c_2)

Tool: triangle
Input: F, G
Output: poly2, f, h, i, g_1, f_1, i_1, I

f = Segment(F, G)
H = Midpoint(F, G)
G' = Rotate(G, 90*°, H)
g = Ray(H, G')
I = Point(g)
h = Segment(I, F)
i = Segment(I, G)
poly2, i_1, f_1, g_1 = Polygon(F, G, I)

Tool: Tool2
Input: F, G
Output: f, H, g

f = Segment(F, G)
H = Midpoint(F, G)
G' = Rotate(G, 90*°, H)
g = Ray(H, G')