Author: 李季樵

x

y

z

單位向量

座標軸

xy平面

r = 0.7 (slider from 0 to 2, step 0.1)
α = 2.5307274153917776 rad (slider from 0 to 6.283185307179586, step 0.1*°)
β = 2.356194490192345 rad (slider from 0 to 6.283185307179586, step 0.1*°)
O = (0.9882452319043039, 0.1612850312197141)
X_{unit}: O + (cos(α), sin(α) * cos(β))
u = Vector(O, X_{unit})
Y_{unit}: O + (-sin(α), cos(α) * cos(β))
v = Vector(O, Y_{unit})
Z_{unit}: O + (0, sin(β))
w = Vector(O, Z_{unit})
A_3: O - 2 * r * u - 2 * r * v
A_1: O + 0 * u + 0 * v
L = 8 (slider from 1 to 10, step 1)
a = Vector(O - L * u, O + L * u)
b = Vector(O - L * v, O + L * v)
c = Vector(O - L * w, O + L * w)
h_1 = false
i = false
j = false
A_2: O - 2 * r * u + 0 * v
A_4: O + 0 * u - 2 * r * v
B_2: A_2 + 2 * r * w
B_4: A_4 + 2 * r * w
B_1: A_1 + 2 * r * w
B_3: A_3 + 2 * r * w
P_1, b_1, b_2, b_3, b_4 = Polygon(B_1, B_2, B_3, B_4)
P_2, b_5, a_3, a_2, b_6 = Polygon(B_3, A_3, A_2, B_2)
P_3, b_7, a_4, a_1, b_8 = Polygon(B_4, A_4, A_3, B_3)
P_4, b_9, a_5, a_6, b_{10} = Polygon(B_1, A_1, A_4, B_4)
P_5, b_{11}, a_7, a_8, b_{12} = Polygon(B_2, A_2, A_1, B_1)
P_6, a_9, a_{10}, a_{11}, a_{12} = Polygon(A_4, A_3, A_2, A_1)
A_5: O - r * u - r * v
B_5: A_5 + 2 * r * w
B_6: B_5 + sqrt(3) * w
A_6: A_5 - sqrt(3) * w
A = Midpoint(B_3, B_2)
B = Midpoint(B_4, B_3)
C = Midpoint(B_4, B_1)
D = Midpoint(B_1, B_2)
E = Midpoint(A_3, A_2)
F = Midpoint(A_2, O)
G = Midpoint(O, A_4)
H = Midpoint(A_4, A_3)
poly1, d, a_{13}, b_{13}, c_1 = Polygon(D, A, B, C)
poly2, b_{14}, b_{15}, c_2 = Polygon(B_6, C, B)
poly3, b_{16}, b_{17}, a_{14} = Polygon(B_6, A, B)
poly4, a_{15}, b_{18}, d_1 = Polygon(B_6, D, A)
poly5, c_3, b_{19}, d_2 = Polygon(B_6, D, C)
poly6, g, h, e, f = Polygon(G, H, E, F)
poly7, e_1, h_2, a_{16} = Polygon(H, A_6, E)
poly8, a_{17}, h_3, g_1 = Polygon(H, G, A_6)
poly9, a_{18}, g_2, f_1 = Polygon(G, F, A_6)
poly10, e_2, f_2, a_{19} = Polygon(F, A_6, E)
C_5: O - r * u + r * w
D_5: O - r * v + r * w
E_5: O - r * v - 2 * r * u + r * w
F_5: O - 2 * r * v - r * u + r * w
F_6: F_5 - sqrt(3) * v
E_6: E_5 - sqrt(3) * u
C_6: C_5 + sqrt(3) * v
D_6: D_5 + sqrt(3) * u
I = Midpoint(B_3, A_3)
J = Midpoint(B_2, A_2)
poly11, a_{20}, i_1, e_3, j_1 = Polygon(A, I, E, J)
poly12, i_2, a_{21}, e_6 = Polygon(A, E_6, I)
poly13, e_4, a_{22}, j_2 = Polygon(A, J, E_6)
poly14, e_5, j_3, e_7 = Polygon(J, E_6, E)
poly15, e_8, i_3, e_9 = Polygon(I, E_6, E)
K = Midpoint(B_4, A_4)
poly16, b_{20}, k, h_4, i_4 = Polygon(B, K, H, I)
poly17, i_5, b_{21}, f_6 = Polygon(B, F_6, I)
poly18, k_1, b_{22}, f_3 = Polygon(B, F_6, K)
poly19, h_5, k_2, f_4 = Polygon(K, F_6, H)
poly20, i_6, h_6, f_5 = Polygon(H, F_6, I)
M = Midpoint(B_1, O)
poly21, d_3, j_4, f_7, m = Polygon(D, J, F, M)
poly22, j_5, d_4, c_6 = Polygon(D, C_6, J)
poly23, m_1, d_5, c_4 = Polygon(D, C_6, M)
poly24, f_8, j_6, c_5 = Polygon(J, C_6, F)
poly25, c_7, f_9, m_2 = Polygon(F, M, C_6)
poly27, m_4, c_9, d_6 = Polygon(C, D_6, M)
poly30, m_5, d_9, g_5 = Polygon(D_6, G, M)
poly28, k_3, c_{10}, d_7 = Polygon(C, D_6, K)
poly29, o, k_4, d_8 = Polygon(K, D_6, O)