五角帳篷
Author: 丁鈺庭

五角帳篷

單位向量

單位點

座標軸

x

y

z

C

B

D

G

E

F

c = 3 (slider from 1 to 5, step 0.01)
O = (29.92, 12.74)
β = 4.4505895925855405 rad (slider from 0 to 6.283185307179586, step 0.017453292519943295)
Z_{unit}: O + (0, -sin(β))
w = Vector(O, Z_{unit})
α = 0.4705407663376713 rad (slider from 0 to 6.283185307179586, step 0.01*°)
Y_{unit}: O + (-sin(α), cos(α) * cos(β))
v = Vector(O, Y_{unit})
X_{unit}: O + (cos(α), sin(α) * cos(β))
u = Vector(O, X_{unit})
L = 7 (slider from 1 to 10, step 1)
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)
A = (20.64, 16.56)
h_2 = false
i = false
j = false
a = 5 (slider from 1 to 5, step 0.01)
b = 3 (slider from 1 to 5, step 0.01)
A_2: O + a * cos(72°) * u + a * sin(72°) * v
A_3: O + a * cos(108°) * u + a * sin(108°) * v
A_4: O + a * cos(144°) * u + a * sin(144°) * v
A_5: O + a * cos(180°) * u + a * sin(180°) * v
p = Segment(A_4, A_5)
r = Segment(A_3, A_2)
A_6: O + a * cos(216°) * u + a * sin(216°) * v
s = Segment(A_4, A_6)
t = Segment(A_6, A_3)
A_7: O + a * cos(252°) * u + a * sin(252°) * v
a_1 = Segment(A_6, A_7)
b_1 = Segment(A_7, A_2)
c_1 = Segment(A_5, A_7)
A_0: O + a * cos(0°) * u + a * sin(0°) * v
A_1: O + a * cos(36°) * u + a * sin(36°) * v
A_8: O + a * cos(288°) * u + a * sin(288°) * v
A_9: O + a * cos(324°) * u + a * sin(324°) * v
m = Segment(A_0, A_1)
q = Segment(A_2, A_1)
d_1 = Segment(A_3, A_2)
e_1 = Segment(A_4, A_3)
f_1 = Segment(A_5, A_4)
g_1 = Segment(A_6, A_5)
h_1 = Segment(A_7, A_6)
i_1 = Segment(A_7, A_8)
j_1 = Segment(A_8, A_9)
k_1 = Segment(A_9, A_0)
B_0: O + a * cos(0°) * u + a * sin(0°) * v + b * w
B_1: O + a * cos(36°) * u + a * sin(36°) * v + b * w
B_2: O + a * cos(72°) * u + a * sin(72°) * v + b * w
B_3: O + a * cos(108°) * u + a * sin(108°) * v + b * w
B_4: O + a * cos(144°) * u + a * sin(144°) * v + b * w
B_5: O + a * cos(180°) * u + a * sin(180°) * v + b * w
B_6: O + a * cos(216°) * u + a * sin(216°) * v + b * w
B_7: O + a * cos(252°) * u + a * sin(252°) * v + b * w
B_8: O + a * cos(288°) * u + a * sin(288°) * v + b * w
B_9: O + a * cos(324°) * u + a * sin(324°) * v + b * w
l_1 = Segment(B_8, B_7)
m_1 = Segment(B_6, B_7)
n_1 = Segment(B_8, B_9)
p_1 = Segment(B_9, B_0)
q_1 = Segment(B_0, B_1)
r_1 = Segment(B_1, B_2)
s_1 = Segment(B_3, B_2)
t_1 = Segment(B_3, B_4)
a_2 = Segment(B_4, B_5)
b_2 = Segment(B_5, B_6)
h = 5 (slider from 1 to 5, step 0.01)
C_1: O + c * cos((-18)°) * u + c * sin((-18)°) * v + h * w
C_2: O + c * cos(54°) * u + c * sin(54°) * v + h * w
C_3: O + c * cos(126°) * u + c * sin(126°) * v + h * w
C_4: O + c * cos(198°) * u + c * sin(198°) * v + h * w
C_5: O + c * cos(270°) * u + c * sin(270°) * v + h * w
d = Segment(C_5, C_4)
c_2 = Segment(C_4, C_3)
e_2 = Segment(C_2, C_3)
f_2 = Segment(C_2, C_1)
g_2 = Segment(C_1, C_5)
j_2 = Segment(C_3, B_5)
k_2 = Segment(C_3, B_4)
l_2 = Segment(C_2, B_3)
m_2 = Segment(C_2, B_2)
n_2 = Segment(C_2, B_1)
p_2 = Segment(C_1, B_0)
q_2 = Segment(C_1, B_9)
r_2 = Segment(C_5, B_8)
t_2 = Segment(B_7, A_7)
a_3 = Segment(B_6, A_6)
b_3 = Segment(B_5, A_5)
c_3 = Segment(B_9, A_9)
d_3 = Segment(B_0, A_0)
e_3 = Segment(B_1, A_1)
f_3 = Segment(B_2, A_2)
g_3 = Segment(B_4, A_4)
i_2 = Segment(B_9, B_8)
s_2 = Segment(B_7, B_8)
h_3 = Segment(B_7, B_6)
i_3 = Segment(B_6, B_5)
j_3 = Segment(B_5, B_4)
k_3 = Segment(B_4, B_3)
l_3 = Segment(B_3, B_2)
m_3 = Segment(B_2, B_1)
n_3 = Segment(B_1, B_0)
p_3 = Segment(B_0, B_9)
q_3 = Segment(B_9, A_9)
r_3 = Segment(B_0, A_0)
s_3 = Segment(B_1, A_1)
t_3 = Segment(B_8, A_8)
a_4 = Segment(B_2, A_2)
b_4 = Segment(B_7, A_7)
c_4 = Segment(B_6, A_6)
d_4 = Segment(B_3, A_3)
e_4 = Segment(B_5, A_5)
f_4 = Segment(B_4, A_4)
g_4 = Segment(A_4, A_5)
h_4 = Segment(A_4, A_3)
i_4 = Segment(A_5, A_6)
j_4 = Segment(A_6, A_7)
k_4 = Segment(A_7, A_8)
l_4 = Segment(A_8, A_9)
m_4 = Segment(A_9, A_0)
n_4 = Segment(A_0, A_1)
p_4 = Segment(A_1, A_2)
q_4 = Segment(A_2, A_3)
s_4 = Segment(C_5, C_4)
t_4 = Segment(C_4, C_3)
a_5 = Segment(C_3, C_2)
c_5 = Segment(C_1, C_5)
k_5 = Segment(C_5, C_1)
m_5 = Segment(C_1, B_0)
n_5 = Segment(C_1, B_1)
r_4 = Segment(C_2, C_1)
i_5 = Segment(C_1, B_0)
q_5 = Segment(A_0, A_1)
b_5 = Segment(C_4, B_6)
d_5 = Segment(C_4, B_5)
e_5 = Segment(C_3, B_4)
f_5 = Segment(C_3, B_3)
g_5 = Segment(C_2, B_2)
h_5 = Segment(C_2, B_1)
j_5 = Segment(C_1, B_0)
l_5 = Segment(C_1, B_9)
p_5 = Segment(C_5, B_8)
r_5 = Segment(C_5, B_7)
poly1, b_9, c_6, b_0 = Polygon(C_1, B_0, B_9)
poly2, c_7, c_8, b_6, b_8 = Polygon(C_5, C_1, B_9, B_8)
poly3, c_9, c_{10}, b_7, b_{10} = Polygon(C_1, C_2, B_1, B_0)
poly4, b_{11}, c_{11}, b_{12} = Polygon(C_5, B_8, B_7)
poly5, b_{13}, c_{12}, b_{14} = Polygon(C_2, B_2, B_1)
poly6, c_{13}, c_{14}, b_{15}, b_{16} = Polygon(C_2, C_3, B_3, B_2)
poly7, b_{17}, c_{15}, b_{18} = Polygon(C_3, B_4, B_3)
poly8, c_{16}, b_{19}, b_{20}, c_{17} = Polygon(C_4, B_5, B_4, C_3)
poly9, c_{18}, b_{21}, b_{22}, c_{19} = Polygon(C_5, B_7, B_6, C_4)
poly10, b_{23}, c_{20}, b_{24} = Polygon(C_4, B_6, B_5)
poly11, b_{25}, a_6, a_7, b_{26} = Polygon(B_5, A_5, A_4, B_4)
poly12, b_{27}, a_8, a_9, b_{28} = Polygon(B_4, A_4, A_3, B_3)
poly13, b_{29}, a_{10}, a_{11}, b_{30} = Polygon(B_3, A_3, A_2, B_2)
poly14, b_{31}, a_{12}, a_{13}, b_{32} = Polygon(B_2, A_2, A_1, B_1)
poly15, b_{33}, a_{14}, a_0, b_{34} = Polygon(B_1, A_1, A_0, B_0)
poly16, b_{35}, a_{15}, a_{16}, b_{36} = Polygon(B_0, A_0, A_9, B_9)
poly17, b_{37}, a_{17}, a_{18}, b_{38} = Polygon(B_9, A_9, A_8, B_8)
多邊形1, b_{39}, a_{19}, a_{20}, b_{40} = Polygon(B_8, A_8, A_7, B_7)
多邊形2, b_{41}, a_{21}, a_{22}, b_{42} = Polygon(B_7, A_7, A_6, B_6)
多邊形3, b_{43}, a_{23}, a_{24}, b_{44} = Polygon(B_6, A_6, A_5, B_5)
多邊形4, c_{21}, c_{22}, c_{23}, c_{24}, c_{25} = Polygon(C_5, C_4, C_3, C_2, C_1)
多邊形5, a_{25}, a_{26}, a_{27}, a_{28}, a_{29}, a_{30}, a_{31}, a_{32}, a_{33} = Polygon(A_2, A_3, A_4, A_5, A_6, A_7, A_8, A_9, A_0)
多邊形6, a_{34}, a_{35}, a_{36}, a_{37}, a_{38}, a_{39}, a_{40}, a_{41}, a_{42}, a_{43} = Polygon(A_2, A_3, A_4, A_5, A_6, A_7, A_8, A_9, A_0, A_1)