3D Cross
Author: 林俊廷

3D  十字架的製作

單位向量

單位點

座標軸

xy平面

x

y

z

α = 2.813470754214859 rad (slider from 0 to 6.283185307179586, step 0.1*°)
β = 4.974188368183839 rad (slider from 0 to 6.283185307179586, step 0.017453292519943295)
L = 10 (slider from 1 to 10, step 1)
O = (13.062399268579028, 30.15142874566545)
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)
h = false
i = false
j = false
k = false
A_1: O + 2.5 * u + 0 + 0
A_2: O + 2.5 * v + 0 + 0
A_3: O + 2.5 * u + 2.5 * v + 0
A_5: O + 2.5 * u + 2.5 * v + 20 * w
A_6: O + 2.5 * u + 0 + 20 * w
A_7: O + 0 + 20 * w + 2.5 * v
A_8: O + 0 + 0 + 20 * w
B_1: O + 2.5 * u + 0 + 15 * w
B_2: O + 2.5 * v + 15 * w + 0
B_3: O + 2.5 * u + 0 + 12.5 * w
B_4: O + 12.5 * w + 2.5 * v + 0
B_5: O + 2.5 * u + 2.5 * v + 12.5 * w
B_6: O + 2.5 * u + 2.5 * v + 15 * w
B_0: O + 0 + 0 + 15 * w
B_00: O + 0 + 0 + 12.5 * w
C_1: O + 2.5 * u + 7.5 * v + 12.5 * w
C_2: O + 0 + 7.5 * v + 12.5 * w
C_3: O + 0 + 7.5 * v + 15 * w
C_4: O + 2.5 * u + 7.5 * v + 15 * w
D_1: O - 5 * v - 0 + 15 * w
D_2: O - 5 * v - 0 + 12.5 * w
D_3: O - 5 * v + 2.5 * u + 12.5 * w
D_4: O - 5 * v + 2.5 * u + 15 * w
poly1, a_5, a_6, a_8, a_7 = Polygon(A_5, A_6, A_8, A_7)
poly2, a_1, b_6, b_2, a_2 = Polygon(A_5, B_6, B_2, A_7)
poly3, b_1, c_3, c_4, b_3 = Polygon(B_2, C_3, C_4, B_6)
poly4, c_1, c_2, b_5, b_4 = Polygon(C_4, C_1, B_5, B_6)
poly5, c_5, c_6, c_7, c_8 = Polygon(C_3, C_2, C_1, C_4)
poly6, b_7, c_9, c_{10}, b_8 = Polygon(B_2, C_3, C_2, B_4)
poly7, c_{11}, b_9, b_{10}, c_{12} = Polygon(C_2, B_4, B_5, C_1)
poly8, a_3, a_4, o, a_9 = Polygon(A_7, A_8, O, A_2)
poly9, a_{10}, a_{11}, o_1, a_{12} = Polygon(A_6, A_8, O, A_1)
poly10, a_{13}, a_{14}, a_{15}, a_{16} = Polygon(A_6, A_5, A_3, A_1)
poly11, b_{11}, b_{12}, a_{17}, a_{18} = Polygon(B_5, B_4, A_2, A_3)
poly12, b_0, d_1, d_4, b_{13} = Polygon(B_0, D_1, D_4, B_1)
poly13, b_{14}, d_2, d_3, b_{15} = Polygon(B_1, D_4, D_3, B_3)
poly14, d_5, d_6, d_7, d_8 = Polygon(D_1, D_2, D_3, D_4)
poly15, b_{16}, d_9, d_{10}, b_00 = Polygon(B_0, D_1, D_2, B_00)
poly16, d_{11}, b_{17}, b_{18}, d_{12} = Polygon(D_2, B_00, B_3, D_3)
poly17, a_{19}, a_{20}, a_{21}, o_2 = Polygon(A_2, A_3, A_1, O)