x

plier - déplier

a = 1.1 (slider from 0.1 to 2.4, step 0.1)
A: (5 - a, 2.5 - a, 0)
B: (5 - a, -2.5 + a, 0)
C: (-5 + a, 2.5 - a, 0)
D: (-5 + a, -2.5 + a, 0)
α = 0.5235987755982988 rad (slider from 0 to 90°, step 0.017453292519943295)
E: (-5 + a, 2.5 - (a * (1 - cos(α))), (a * sin(α)))
F: (-5 + a, -2.5 + (a * (1 - cos(α))), (a * sin(α)))
G: (5 - a, 2.5 - (a * (1 - cos(α))), (a * sin(α)))
H: (5 - a, -2.5 + (a * (1 - cos(α))), (a * sin(α)))
I: (-5 + (a * (1 - cos(α))), 2.5 - a, (a * sin(α)))
J: (-5 + (a * (1 - cos(α))), -2.5 + a, (a * sin(α)))
K: (5 - (a * (1 - cos(α))), 2.5 - a, (a * sin(α)))
L: (5 - (a * (1 - cos(α))), -2.5 + a, (a * sin(α)))
poly1, i, c, d, j = Polygon(I, C, D, J)
poly2, e, c_1, a_1, g = Polygon(E, C, A, G)
poly3, a_2, b, l, k = Polygon(A, B, L, K)
poly4, h, b_1, d_1, f = Polygon(H, B, D, F)
poly5, a_3, c_2, d_2, b_2 = Polygon(A, C, D, B)