正四面體的展開圖
Author: 藍邦偉  老師

x

y

z

單位向量

顯示座標軸

正四面體的展開圖

x

y

z

α = 4.468042885105484 rad (slider from 0 to 6.283185307179586, step 0.017453292519943295)
β = 1.4486232791552935 rad (slider from 0 to 6.283185307179586, step 0.017453292519943295)
O = (11.212227844790268, 2.3428504491956916)
X_{unit}: O + (cos(α), sin(α) * cos(β))
Y_{unit}: O + (-1 * sin(α), cos(α) * cos(β))
Z_{unit}: O + (0, sin(β))
u = Vector(O, X_{unit})
v = Vector(O, Y_{unit})
w = Vector(O, Z_{unit})
L = 7 (slider from 1 to 10, step 1)
a = Vector(O - L * v, O + L * v)
b = Vector(O - L * w, O + L * w)
z = Vector(O - L * u, O + L * u)
A_1: O + L * u
B_1: O + L * v
Z: O + L * w
c = false
d = true
r = 3 (slider from 1 to 5, step 1)
A_b: O + r * cos(120°) * u + r * sin(120°) * v
A_a: O + r * u
A_c: O + r * cos(240°) * u + r * sin(240°) * v
e = Segment(A_a, A_b)
f = Segment(A_c, A_b)
g = Segment(A_c, A_a)
A_3: O + r * sqrt(2) * w
h = Segment(A_c, A_3)
i = Segment(A_a, A_3)
j = Segment(A_b, A_3)
A_o: O + 0.25 * sqrt(2) * r * w
A_{d1}: O + r * sqrt(2) * w
B_a: A_a + A_b - A_c
B_b: A_a + A_c - A_b
B_c: A_b + A_c - A_a
k = Segment(A_{d1}, B_a)
l = Segment(A_{d1}, B_b)
m = Segment(A_{d1}, B_c)
t = 0 (slider from 0 to 1, step 0.01)
A_{d3}: O + (r * sqrt(2) - sqrt(2) * r * t) * w - 2 * r * t * u
n = Segment(A_c, A_{d3})
p = Segment(A_{d3}, A_b)
A_{d2}: O + r * t * u + sqrt(3) * r * t * v + (r * sqrt(2) - sqrt(2) * r * t) * w
q = Segment(A_{d2}, A_b)
s = Segment(A_{d2}, A_a)
A_{d4}: O + r * t * u - sqrt(3) * r * t * v + (r * sqrt(2) - sqrt(2) * r * t) * w
a_1 = Segment(A_{d4}, A_a)
b_1 = Segment(A_{d4}, A_c)
多邊形1 = Poly_G3(A_{d4}, A_c, A_a)
多邊形2 = Poly_G3(A_{d2}, A_a, A_b)
多邊形3 = Poly_G3(A_{d3}, A_b, A_c)

Tool: Poly_G3
Input: A, B, C
Output: poly1'

α = Angle(C, B, A)
d: sqrt(sgn(sin(α)))
A' = Dilate(A, d, A)
B' = Dilate(B, d, A)
C' = Dilate(C, d, A)
poly1', c', a', b' = Polygon(A', B', C')