3D 座標架的製作
Author: 藍邦偉  老師

截角四面體

單位向量

單位點

座標軸

xy平面

顯示作法

x

y

z

α = 4.717624968140673 rad (slider from 0 to 6.283185307179586, step 0.1*°)
β = 5.475097863506212 rad (slider from 0 to 6.283185307179586, step 0.1*°)
L = 7 (slider from 1 to 10, step 1)
O = (37.495783686711, 6.798706456277125)
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
l = true
A_1: O + 3 * u + v + w
A_3: O + 3 * u - v - w
A_5: O - 3 * u - v + w
A_6: O - 3 * u + v - w
A_9: O + u + 3 * v + w
A_11: O + u - 3 * v - w
A_14: O - u + 3 * v - w
A_15: O - u - 3 * v + w
A_18: O - u - v + 3 * w
A_19: O - u + v - 3 * w
A_23: O + u - v - 3 * w
A_24: O + u + v + 3 * w
s = Segment(A_11, A_23)
t = Segment(A_3, A_23)
a_1 = Segment(A_11, A_3)
f_1 = Segment(A_24, A_9)
p_1 = Segment(A_15, A_5)
a_2 = Segment(A_18, A_5)
b_2 = Segment(A_15, A_18)
f_2 = Segment(A_6, A_19)
m_2 = Segment(A_6, A_14)
q_2 = Segment(A_14, A_19)
m = Segment(A_1, A_9)
p = Segment(A_18, A_24)
q = Segment(A_15, A_11)
b_1 = Segment(A_9, A_14)
c_1 = Segment(A_5, A_6)
e_1 = Segment(A_23, A_19)
a = Segment(A_24, A_1)
poly1, a_9, a_24, a_3 = Polygon(A_24, A_1, A_9)
poly2, a_15, a_11, a_23, a_19, a_6, a_5 = Polygon(A_15, A_11, A_23, A_19, A_6, A_5)
poly3, a_4, a_7, a_14, a_8, a_{10}, a_18 = Polygon(A_24, A_9, A_14, A_6, A_5, A_18)
poly4, a_{11}, a_{12}, a_{13} = Polygon(A_3, A_23, A_11)
b = Segment(A_1, A_3)
poly5, a_{14}, a_{15}, a_{16}, a_{17}, a_{18}, a_{19} = Polygon(A_1, A_9, A_14, A_19, A_23, A_3)
poly6, a_{20}, a_{21}, a_{22} = Polygon(A_14, A_6, A_19)
poly7, a_{23}, a_{24}, a_{25} = Polygon(A_5, A_15, A_18)
poly8, a_{26}, a_{27}, a_{28}, a_{29}, a_{30}, a_{31} = Polygon(A_18, A_15, A_11, A_3, A_1, A_24)