八角柱
Author: 黃鈺筑

八角柱

座標軸

xy平面

x

y

z

α = 2.3643975376767186 rad (slider from 0 to 6.283185307179586, step 0.01*°)
β = 1.3089969389957472 rad (slider from 0 to 6.283185307179586, step 0.017453292519943295)
L = 15 (slider from 0 to 25, step 3)
O = (29.84253500219763, 12.78)
X_{unit}: O + (cos(α), sin(α) * cos(β))
Y_{unit}: O + (-sin(α), cos(α) * cos(β))
Z_{unit}: O + (0, -sin(β))
u = Vector(O, X_{unit})
v = Vector(O, Y_{unit})
w = Vector(O, Z_{unit})
x_{Axis} = Vector(O - L * u, O + L * u)
y_{Axis} = Vector(O - L * v, O + L * v)
z_{Axis} = Vector(O - L * w, O + L * w)
n = 9 (slider from 0 to 18, step 3)
j = false
k = false
A: O + 0 * u + 6 * v + 0 * w
B: O + 0 * u - 6 * v + 0 * w
C: O + 6 * u + 0 * v + 0 * w
D: O - 6 * u + 0 * v + 0 * w
E: O - 9 * u + 0 * v - 6 * w
a = Segment(D, C)
b = Segment(B, A)
F: O + 0 * u + 0 * v - 6 * w
m = Segment(E, F)
G: O - 6 * u + 6 * v + 0 * w
p = Segment(D, G)
H: O + 6 * u + 6 * v + 0 * w
q = Segment(G, H)
r = Segment(C, H)
I: O - 6 * u - 6 * v + 0 * w
s = Segment(I, B)
t = Segment(I, D)
J: O + 6 * u - 6 * v + 0 * w
a_1 = Segment(B, J)
b_1 = Segment(J, C)
c_1 = Segment(I, O)
d_1 = Segment(O, H)
e_1 = Segment(J, G)
K: O - 9 * u + 0 * v + 0 * w
f_1 = Segment(I, K)
g_1 = Segment(K, G)
L_1: O + 0 * u + 9 * v + 0 * w
h_1 = Segment(G, L_1)
i_1 = Segment(L_1, H)
M: O + 9 * u + 0 * v + 0 * w
j_1 = Segment(J, M)
k_1 = Segment(M, H)
N: O + 0 * u - 9 * v + 0 * w
l_1 = Segment(N, I)
m_1 = Segment(N, J)
c = Segment(K, E)
P: O + 0 * u + 9 * v - 6 * w
n_1 = Segment(L_1, P)
p_1 = Segment(P, F)
Q: O + 6 * u + 6 * v - 6 * w
r_1 = Segment(H, Q)
t_1 = Segment(Q, P)
R: O + 9 * u + 0 * v - 6 * w
a_2 = Segment(M, R)
b_2 = Segment(R, F)
c_2 = Segment(R, Q)
S: O + 0 * u - 9 * v - 6 * w
d_2 = Segment(N, S)
e_2 = Segment(S, F)
T: O + 6 * u - 6 * v - 6 * w
g_2 = Segment(J, T)
h_2 = Segment(T, R)
i_2 = Segment(T, S)
U: O - 6 * u - 6 * v - 6 * w
j_2 = Segment(S, U)
k_2 = Segment(U, E)
l_2 = Segment(I, U)
V: O - 6 * u + 6 * v - 6 * w
m_2 = Segment(E, V)
n_2 = Segment(V, P)
W: O - 6 * u + 6 * v - 6 * w
s_1 = Segment(G, V)
poly1, n_3, s_2, u_1, i_3 = Polygon(N, S, U, I)
poly2, i_4, u_2, e, k_3 = Polygon(I, U, E, K)
poly3, g, k_4, i_5, n_4, j_3, m_3, h_3, l_3 = Polygon(G, K, I, N, J, M, H, L_1)
poly5, u_4, s_4, t_3, r_3, q_1, p_3, w_2, e_4 = Polygon(U, S, T, R, Q, P, W, E)
poly4, g_3, v_1, e_3, k_5 = Polygon(G, V, E, K)
poly7, l_5, p_4, v_3, g_5 = Polygon(L_1, P, V, G)
poly6, h_4, q_2, p_2, l_4 = Polygon(H, Q, P, L_1)
poly8, m_4, r_2, q_3, h_5 = Polygon(M, R, Q, H)
poly10, n_5, s_3, t_4, j_5 = Polygon(N, S, T, J)
poly11, u_3, i_6, n_6, s_5 = Polygon(U, I, N, S)
poly13, k_7, e_6, u_6, i_8 = Polygon(K, E, U, I)
poly14, m_6, r_5, t_5, j_6 = Polygon(M, R, T, J)