我有一个十二面体的丑陋模型,我需要在每个轴上旋转(活动):
local phi = 1.618
local b = 1 / phi
local c = 2 - phi
self.polys = {
{{ c, 0, 1}, {-c, 0, 1}, {-b, b, b}, { 0, 1, c}, { b, b, b}},
{{-c, 0, 1}, { c, 0, 1}, { b, -b, b}, { 0, -1, c}, {-b, -b, b}},
{{ c, 0, -1}, {-c, 0, -1}, {-b, -b, -b}, { 0, -1, -c}, { b, -b, -b}},
{{-c, 0, -1}, { c, 0, -1}, { b, b, -b}, { 0, 1, -c}, {-b, b, -b}},
{{ 0, 1, -c}, { 0, 1, c}, { b, b, b}, { 1, c, 0}, { b, b, -b}},
{{ 0, 1, c}, { 0, 1, -c}, {-b, b, -b}, {-1, c, 0}, {-b, b, b}},
{{ 0, -1, -c}, { 0, -1, c}, {-b, -b, b}, {-1, -c, 0}, {-b, -b, -b}},
{{ 0, -1, c}, { 0, -1, -c}, { b, -b, -b}, { 1, -c, 0}, { b, -b, b}},
{{ 1, c, 0}, { 1, -c, 0}, { b, -b, b}, { c, 0, 1}, { b, b, b}},
{{ 1, -c, 0}, { 1, c, 0}, { b, b, -b}, { c, 0, -1}, { b, -b, -b}},
{{-1, c, 0}, {-1, -c, 0}, {-b, -b, -b}, {-c, 0, -1}, {-b, b, -b}},
{{-1, -c, 0}, {-1, c, 0}, {-b, b, b}, {-c, 0, 1}, {-b, -b, b}}
}
我遇到的主要问题是我完全不知道自己在做什么。