Durch Ziehen an dem Punkt 
kann die gelbe Pyramide 
verschoben werden.

Durch Ziehen an dem Punkt 
kann die blaue Pyramide 
verschoben werden.

W_0 = (-6, 6)
D = (-2, 1)
k_x = 5.5 (slider from -2 to 10, step 0.5)
W: (-4 + k_x, 6)
v = Vector(W_0, W)
D_x = Translate(D, v)
A = (-2, -4)
B = (3, -4)
C = (3, 1)
E = (0, -2)
F = (5, -2)
G = (5, 3)
H = (0, 3)
k_y = 4.5 (slider from -2 to 6, step 0.5)
V: (-4, k_y + 2)
V_0 = (-4, 0)
u = Vector(V_0, V)
D_y = Translate(D, u)
H_y = Translate(H, u)
G_y = Translate(G, u)
F_y = Translate(F, u)
E_y = Translate(E, u)
poly1, k_3, i, j = Polygon(D_y, H_y, G_y)
poly3, k_2, i_2, l = Polygon(D_y, F_y, G_y)
poly4, l_1, i_3, m_1 = Polygon(D_y, E_y, F_y)
a = Segment(A, B)
b = Segment(B, F)
c = Segment(F, E)
d = Segment(E, A)
e = Segment(A, D)
f = Segment(D, H)
g = Segment(H, E)
h = Segment(H, G)
n = Segment(G, F)
p = Segment(D, C)
q = Segment(C, B)
r = Segment(C, G)
B_x = Translate(B, v)
F_x = Translate(F, v)
G_x = Translate(G, v)
C_x = Translate(C, v)
poly5, b_x, d_x, c_x = Polygon(D_x, C_x, B_x)
poly6, c_1, g_x, f_x, b_1 = Polygon(C_x, G_x, F_x, B_x)
poly7, c_2, d_1, g_1 = Polygon(D_x, G_x, C_x)
poly9, b_3, d_3, a_1 = Polygon(D, A, B)
poly10, b_4, d_4, f_2 = Polygon(D, F, B)
k = Segment(E_y, H_y)
m = Segment(D_x, F_x)
s = Segment(D, E)