A = (1, 5)
B = (1, 1)
poly1, a, b, c, d, C, D = Polygon(A, B, 4.0)
R = (3.3007227939389026, 3.1870983982929535)
e = Segment(A, R)
f = Segment(R, D)
g = Segment(R, C)
h = Segment(R, B)
L: e + f + g + h
text1: "La longueur du réseau est " + L + "   km"
E = (6, 5)
F = (6, 1)
poly2, i, j, k, l, G, H = Polygon(E, F, 4.0)
I = Midpoint(i)
J = Midpoint(k)
O = Midpoint(I, J)
m = Segment(I, O)
n = Segment(O, J)
R1 = Point(m)
R2 = Mirror(R1, O)
p = Segment(R1, E)
q = Segment(R1, F)
r = Segment(R1, R2)
s = Segment(R2, H)
t = Segment(R2, G)
text2: "La longueur du réseau est " + (p + q + r + s + t) + "  km"