多面體
Author: 賴玟靜

多面體

單位向量

單位點

座標軸

xy平面

x

y

z

(7,0,0)

(0,7,0)

(0,-7,0)

(-7,0,0)

(0,7,7)

(7,0,7)

(-7,0,7)

(0,-7,7)

α = 5.033529562751647 rad (slider from 0 to 6.283185307179586, step 0.1*°)
β = 5.323254218582705 rad (slider from 0 to 6.283185307179586, step 0.017453292519943295)
L = 17 (slider from 1 to 20, step 1)
O = (45.45596354843122, 11.57400302600692)
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 + 4 * u + 4 * v + 4 * w
A_2: O - 4 * u + 4 * v + 4 * w
A_3: O - 4 * v + 4 * w - 4 * u
A_4: O + 4 * u - 4 * v + 4 * w
A_5: O + 4 * u + 4 * v - 4 * w
A_6: O - 4 * u + 4 * v - 4 * w
A_7: O - 4 * u - 4 * v - 4 * w
A_8: O + 4 * u - 4 * v - 4 * w
a = Segment(A_4, A_3)
b = Segment(A_2, A_3)
c = Segment(A_4, A_1)
m = Segment(A_1, A_2)
p = Segment(A_8, A_4)
q = Segment(A_1, A_5)
r = Segment(A_8, A_5)
s = Segment(A_5, A_6)
t = Segment(A_6, A_2)
a_1 = Segment(A_7, A_6)
b_1 = Segment(A_7, A_3)
c_1 = Segment(A_8, A_7)
B_1: 0.5 * (A_1 + A_3)
C_1: B_1 + 6 * w
d_1 = Segment(C_1, A_4)
e_1 = Segment(C_1, A_1)
f_1 = Segment(C_1, A_2)
g_1 = Segment(C_1, A_3)
B_2: 0.5 * (A_8 + A_6)
C_2: B_2 - 6 * w
h_1 = Segment(A_5, C_2)
i_1 = Segment(A_6, C_2)
j_1 = Segment(A_8, C_2)
k_1 = Segment(A_7, C_2)
B_3: 0.5 * (A_3 + A_6)
B_4: 0.5 * (A_5 + A_4)
C_3: B_3 - 6 * u
l_1 = Segment(A_3, C_3)
m_1 = Segment(C_3, A_2)
n_1 = Segment(C_3, A_6)
p_1 = Segment(A_7, C_3)
C_4: B_4 + 6 * u
q_1 = Segment(A_4, C_4)
r_1 = Segment(A_1, C_4)
s_1 = Segment(A_8, C_4)
t_1 = Segment(A_5, C_4)
poly1, a_4, c_2, a_3 = Polygon(C_1, A_3, A_4)
poly2, a_2, c_3, a_5 = Polygon(C_1, A_2, A_3)
poly3, a_6, c_4, a_7 = Polygon(C_1, A_1, A_4)
poly4, a_8, c_5, a_9 = Polygon(C_1, A_1, A_2)
poly5, a_{10}, a_{11}, a_{12}, a_{13} = Polygon(A_4, A_8, A_5, A_1)
poly6, a_{14}, a_{15}, a_{16}, a_{17} = Polygon(A_3, A_7, A_8, A_4)
poly7, a_{18}, a_{19}, a_{20}, a_{21} = Polygon(A_1, A_5, A_6, A_2)
poly8, a_{22}, a_{23}, a_{24}, a_{25} = Polygon(A_2, A_6, A_7, A_3)
poly9, a_{26}, a_{27}, c_6 = Polygon(A_4, C_4, A_1)
poly10, a_{28}, a_{29}, c_7 = Polygon(A_1, C_4, A_5)
poly11, a_{30}, a_{31}, c_8 = Polygon(A_4, C_4, A_8)
poly12, a_{32}, c_9, a_{33} = Polygon(C_4, A_8, A_5)
poly13, a_{34}, a_{35}, c_{10} = Polygon(A_8, C_4, A_5)
poly14, a_{36}, a_{37}, c_{11} = Polygon(A_1, C_4, A_4)
B = (12.39520403819345, 20.285165032435252)
C = (15.523367953475537, 21.53643059854808)
poly15, c_{12}, a_{38}, a_{39} = Polygon(A_1, A_5, C_4)
poly16, a_{40}, c_{13}, a_{41} = Polygon(C_1, A_4, A_3)
poly17, a_{42}, c_{14}, a_{43} = Polygon(C_1, A_1, A_4)
poly18, a_{44}, c_{15}, a_{45} = Polygon(C_1, A_2, A_3)
poly19, a_{46}, c_{16}, a_{47} = Polygon(C_1, A_2, A_1)
poly20, c_{17}, a_{48}, a_{49} = Polygon(A_3, A_7, C_3)
poly21, c_{18}, a_{50}, a_{51} = Polygon(A_2, A_3, C_3)
poly22, c_{19}, a_{52}, a_{53} = Polygon(A_2, A_6, C_3)
poly23, a_{54}, c_{20}, a_{55} = Polygon(C_3, A_7, A_6)
poly24, a_{56}, a_{57}, c_{21} = Polygon(A_5, C_2, A_6)
poly25, a_{58}, a_{59}, c_{22} = Polygon(A_6, C_2, A_7)
poly26, c_{23}, a_{60}, a_{61} = Polygon(A_8, A_5, C_2)
poly27, a_{62}, a_{63}, c_{24} = Polygon(A_8, C_2, A_7)
poly28, a_{64}, a_{65}, a_{66}, a_{67} = Polygon(A_4, A_3, A_7, A_8)
poly29, a_{68}, a_{69}, a_{70}, a_{71} = Polygon(A_4, A_1, A_5, A_8)
poly30, a_{72}, a_{73}, a_{74}, a_{75} = Polygon(A_1, A_5, A_6, A_2)
poly31, a_{76}, a_{77}, a_{78}, a_{79} = Polygon(A_2, A_3, A_7, A_6)
poly32, a_{80}, a_{81}, a_{82}, a_{83} = Polygon(A_2, A_3, A_4, A_1)