正八面體
Author: 鄭柏勳

正八面體

單位向量

單位點

座標軸

xy平面

x

y

z

α = 0.1466076571675237 rad (slider from 0 to 6.283185307179586, step 0.01*°)
β = 4.886921905584122 rad (slider from 0 to 6.283185307179586, step 0.017453292519943295)
L = 4 (slider from 1 to 10, step 1)
O = (37.69668465036729, 8.577473706371446)
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)
多邊形1, d, e, f, g = Polygon(O + L * u + L * v, O - L * u + L * v, O - L * u - L * v, O + L * u - L * v)
A = (20.64, 16.56)
h = false
i = false
j = false
k = false
A_1: O + 2 * w
A_2: O + u + v + w
A_3: O - u + v + w
A_4: O + u - v + w
A_5: O - u - v + w
poly1, a_2, a_4, o = Polygon(A_4, O, A_2)
poly2, a_3, a_1, o_1 = Polygon(A_2, O, A_3)
poly3, a_5, a_6, o_2 = Polygon(A_3, O, A_5)
poly4, a_7, a_8, o_3 = Polygon(A_5, O, A_4)
poly5, a_9, a_{10}, a_{11} = Polygon(A_1, A_5, A_4)
poly6, a_{12}, a_{13}, a_{14} = Polygon(A_1, A_4, A_2)
poly7, a_{15}, a_{16}, a_{17} = Polygon(A_1, A_2, A_3)
poly8, a_{18}, a_{19}, a_{20} = Polygon(A_1, A_3, A_5)