Author: 李季樵

X

Y

Z

單位向量

座標軸

$ 反五稜柱 $

β = 5.532693728822025 rad (slider from 0 to 6.283185307179586, step 0.1*°)
α = 4.279547325890096 rad (slider from 0 to 6.283185307179586, step 0.1*°)
O = (3.6, -2.03)
X_{unit}: O + (cos(α), sin(α) * cos(β))
u = Vector(O, X_{unit})
Y_{unit}: O + (-sin(α), cos(α) * cos(β))
v = Vector(O, Y_{unit})
Z_{unit}: O + (0, -sin(β))
w = Vector(O, Z_{unit})
L = 7 (slider from 0 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)
r = 2.5 (slider from -5 to 5, step 0.1)
A_1: O + r * cos(0°) * u + r * sin(0°) * v
A_2: O + r * cos(72°) * u + r * sin(72°) * v
A_3: O + r * cos(144°) * u + r * sin(144°) * v
A_4: O + r * cos(216°) * u + r * sin(216°) * v
A_5: O + r * cos(288°) * u + r * sin(288°) * v
B_1: O + r * cos(36°) * u + r * sin(36°) * v + r * w
B_2: O + r * cos(108°) * u + r * sin(108°) * v + r * w
B_3: O + r * cos(180°) * u + r * sin(180°) * v + r * w
B_4: O + r * cos(252°) * u + r * sin(252°) * v + r * w
B_5: O + r * cos(324°) * u + r * sin(324°) * v + r * w
a_0 = Segment(A_1, A_2)
a_1 = Segment(A_2, A_3)
a_2 = Segment(A_3, A_4)
a_3 = Segment(A_4, A_5)
a_4 = Segment(A_5, A_1)
b_1 = Segment(B_2, B_3)
b_0 = Segment(B_1, B_2)
b_2 = Segment(B_3, B_4)
b_3 = Segment(B_4, B_5)
b_4 = Segment(B_5, B_1)
a, a_6, a_7, a_8 = Polygon(A_1, A_2, B_1)
b, b_6, b_7, b_8 = Polygon(A_2, A_3, B_2)
c, b_5, a_5, a_9 = Polygon(A_3, A_4, B_3)
d, b_9, a_{10}, a_{11} = Polygon(A_4, A_5, B_4)
B, b_{19}, b_{20}, b_{21}, b_{22}, b_{23} = Polygon(B_1, B_2, B_3, B_4, B_5)
f, e, g, h = Polygon(A_1, A_5, B_5)
A, a_{16}, a_{17}, a_{18}, a_{19}, a_{20} = Polygon(A_1, A_2, A_3, A_4, A_5)
poly1, a_{12}, b_{10}, b_{11} = Polygon(B_2, B_1, A_2)
poly2, a_{13}, b_{12}, b_{13} = Polygon(B_1, B_5, A_1)
poly3, a_{14}, b_{14}, b_{15} = Polygon(B_5, B_4, A_5)
poly4, a_{15}, b_{16}, b_{17} = Polygon(B_4, B_3, A_4)
poly5, a_{21}, b_{18}, b_{24} = Polygon(B_3, B_2, A_3)