A = (9, 2)
B = (11, 2)
hulknurk1, f, g, h, i, C, D = Polygon(A, B, 4)
D' = Rotate(D, (-(45°)), C)
α = Angle(D', C, D)
D'_{1} = Rotate(D, (-(45°)), C)
C' = Rotate(C, 45°, D)
β = Angle(C, D, C')
j = Line(D, C')
k = Line(D', C)
E = Intersect(j, k)
t1, e, d, c = Polygon(D, C, E)
hulknurk2, l, m, n, p, F, G = Polygon(E, C, 4)
hulknurk3, q, r, s, t, H, I = Polygon(D, E, 4)
t2, q1, q2 = Tööriist2(I, H)
t3, q3, q4 = Tööriist2(G, F)
J = (7, 5)
K = (7, 6)
t4, q5, q6 = Tööriist2(J, K)
L = Point(k)
M = (9, 7)
t5, q7, q8 = Tööriist2(L, M)
N = (11, 7)
O = Point(j)
t6, q9, q10 = Tööriist2(N, O)
P = (13, 6)
Q = (13, 5)
t7, q11, q12 = Tööriist2(P, Q)
R = (3.179999123304487, 13.459999697011416)
S = (6, 10)
t8, q13, q14 = Tööriist2(R, S)
T = (2, 5)
U = (3, 5)
t9, q15, q16 = Tööriist2(T, U)
V = (17, 9)
W = (19, 9)
t10, q17, q18 = Tööriist2(V, W)

Tool: Tööriist1
Input: A, B, E
Output: t1, hulknurk4, hulknurk3

hulknurk2, f, g, h, i, C, D = Polygon(A, B, 4)
D' = Rotate(D, (-(45°)), C)
j = Line(C, D')
k = Line(D, E)
F = Intersect(j, k)
t1, f_2, d, c = Polygon(D, C, F)
hulknurk3, l, m, n, p, G, H = Polygon(F, C, 4)
hulknurk4, q, r, s, t, M, N = Polygon(D, F, 4)

Tool: Tööriist2
Input: D, C
Output: t1, hulknurk2, hulknurk3

D' = Rotate(D, (-(45°)), C)
C' = Rotate(C, 45°, D)
j = Line(D, C')
k = Line(D', C)
E = Intersect(j, k)
t1, e, d, c = Polygon(D, C, E)
hulknurk2, l, m, n, p, F, G = Polygon(E, C, 4)
hulknurk3, q, r, s, t, H, I = Polygon(D, E, 4)