c = 5 (slider from 0 to 10)
yA: c / 2
xA: yA / tan(22.5°)
h = 6 (slider from 0 to xA)
h' = Min(h, c / 2)
B: (yA, xA, h')
A: (xA, yA, h')
poly1, f, g, i, j, k, l, m, n, C, D, E, F, G, H = Polygon(A, B, 8, xOyPlane)
I: (yA, yA, h)
J: ((-yA), yA, h)
poly2, p, q, r_6, s, K, L = Polygon(I, J, 4, xOyPlane)
A': (xA, yA, (-h'))
B': (yA, xA, (-h'))
poly3, t, a, b, d, e, f_1, g_1, h_1, C', D', E', F', G', H' = Polygon(A', B', 8, xOyPlane)
I': (yA, yA, (-h))
J': ((-yA), yA, (-h))
poly4, i_1, j_1, k_1, l_1, K', L' = Polygon(I', J', 4, xOyPlane)
q1, a_1, b_1, b', a' = Polygon(A, B, B', A')
q2, b_2, c_1, c', m_1 = Polygon(B, C, C', B')
q3, c_2, d_1, d', n_1 = Polygon(C, D, D', C')
q4, d_2, e_1, e', p_1 = Polygon(D, E, E', D')
q5, e_2, f_2, f', q_1 = Polygon(E, F, F', E')
q6, f_3, g_2, g', r_1 = Polygon(F, G, G', F')
q7, g_3, h_2, s_1, t_1 = Polygon(G, H, H', G')
q8, h_3, a_2, i_2, j_2 = Polygon(H, A, A', H')
q9, b_3, c_3, j_3, i_3 = Polygon(B, C, J, I)
q10, d_3, e_3, k_2, j_4 = Polygon(D, E, K, J)
q11, f_4, g_4, l_2, k_3 = Polygon(F, G, L, K)
q12, h_4, a_3, i_4, l_3 = Polygon(H, A, I, L)
q13, m_2, n_2, j', i' = Polygon(B', C', J', I')
q14, p_2, q_2, m_3, r_2 = Polygon(D', E', K', J')
q15, s_2, t_2, n_3, m_4 = Polygon(F', G', L', K')
q16, p_3, q_3, r_3, n_4 = Polygon(H', A', I', L')
t1, i_5, a_4, b_4 = Polygon(A, B, I)
t2, j_5, c_4, d_4 = Polygon(C, D, J)
t3, k_4, e_4, f_5 = Polygon(E, F, K)
t4, l_4, g_5, h_5 = Polygon(G, H, L)
t5, s_3, t_3, p_4 = Polygon(A', B', I')
t6, q_4, r_4, s_4 = Polygon(C', D', J')
t7, m_5, n_5, p_5 = Polygon(E', F', K')
t8, n_6, q_5, r_5 = Polygon(G', H', L')
Ω: (0, 0, 0)
r = 6.001 (slider from 0 to (2 * h), step 0.001)
o = Sphere(Ω, r)
r'_1: nroot(r^(2) - h^(2),2)
O = Midpoint(A, B')
P = Midpoint(B, C')
Q = Midpoint(C, D')
R = Midpoint(D, E')
S = Midpoint(E, F')
T = Midpoint(F, G')
U = Midpoint(G, H')
V = Midpoint(H, A')
M1: (A + B + I) / 3
M2: (C + D + J) / 3
M3: (E + F + K) / 3
M4: (G + H + L) / 3
M'1: (A' + B' + I') / 3
M'2: (C' + D' + J') / 3
M'3: (E' + F' + K') / 3
M'4: (G' + H' + L') / 3
M = Midpoint(B, J)
N = Midpoint(D, K)
W = Midpoint(F, L)
Z = Midpoint(H, I)
M' = Midpoint(B', J')
N' = Midpoint(D', K')
W' = Midpoint(F', L')
r' = Midpoint(H', I')
t_4 = Circle(O, r'_1, l_4)
c_5 = Circle(P, r'_1, h_4)
d_5 = Circle(Q, r'_1, i_5)
e_5 = Circle(R, r'_1, b_3)
k_5 = Circle(S, r'_1, j_5)
s_5 = Circle(T, r'_1, d_3)
t_5 = Circle(U, r'_1, k_4)
c_6 = Circle(V, r'_1, f_4)
d_6 = Circle(M, r'_1, h_5)
e_6 = Circle(N, r'_1, b_4)
f_6 = Circle(W, r'_1, d_4)
g_6 = Circle(Z, r'_1, f_5)
h_6 = Circle(M', r'_1, n_5)
k_6 = Circle(N', r'_1, p_4)
p_6 = Circle(W', r'_1, t_3)
q_6 = Circle(r', r'_1, r_4)
A_1 = Midpoint(I, K)
B_1 = Midpoint(I', K')
s_6 = Circle(A_1, r'_1, m_1)
t_6 = Circle(B_1, r'_1, m_1)
lc = 20 (slider from 0 to 50)
q17, i_6, j_6, k_7, l_5 = Polygon(I, J, K, L)
q18, a_5, b_5, k', l' = Polygon(I', J', K', L')
u, c_7, v = Cylinder(c_5, lc)
w, w_2, w_3 = Cylinder(e_5, lc)
o_1, o_2, o_3 = Cylinder(s_5, lc)
u_1, d_7, v_1 = Cylinder(c_6, lc)
w_1, e_7, u_2 = Cylinder(s_6, lc)
v_2, v_3, v_4 = Cylinder(t_6, (-lc))
u_3, f_7, o_4 = Cylinder(d_5, lc)
u_4, u_5, u_6 = Cylinder(k_5, lc)
w_4, w_5, w_6 = Cylinder(t_5, lc)
o_5, g_7, v_5 = Cylinder(t_4, lc)
a_6, h_7, b_6 = Cylinder(d_6, (-lc))
l_6, p_7, m_6 = Cylinder(e_6, (-lc))
o_6, q_7, v_6 = Cylinder(f_6, (-lc))
a_7, r_7, b_7 = Cylinder(g_6, (-lc))
i_7, i_8, i_9 = Cylinder(k_6, (-lc))
j_7, s_7, l_7 = Cylinder(h_6, lc)
m_7, t_7, n_7 = Cylinder(q_6, lc)
o_7, o_8, o_9 = Cylinder(p_6, lc)
f_8 = Line(M1, M'3)
g_8 = Line(M2, M'4)
h_8 = Line(M3, M'1)
j_8 = Line(M4, M'2)
ωm1: nroot((x(M1))^(2) + (y(M1))^(2) + (z(M1))^(2),2)
r'_2: nroot(r^(2) - ωm1^(2),2)
c_8 = Circle(M1, r'_2, f_8)
d_8 = Circle(M2, r'_2, g_8)
e_8 = Circle(M3, r'_2, h_8)
k_8 = Circle(M4, r'_2, j_8)
p_8 = Circle(M'1, r'_2, h_8)
q_8 = Circle(M'2, r'_2, j_8)
r_8 = Circle(M'3, r'_2, f_8)
s_8 = Circle(M'4, r'_2, g_8)
u_7, t_8, v_7 = Cylinder(c_8, (-lc))
w_7, c_9, a_8 = Cylinder(d_8, (-lc))
b_8, d_9, l_8 = Cylinder(e_8, (-lc))
m_8, e_9, n_8 = Cylinder(k_8, (-lc))
u_8, u_9, u_{10} = Cylinder(p_8, lc)
v_8, v_9, v_{10} = Cylinder(q_8, lc)
w_8, w_9, w_{10} = Cylinder(r_8, lc)
a_9, a_{10}, a_{11} = Cylinder(s_8, lc)