ねこでじ(Nekodigi)

Nekodigi’s diary

学習中の気づきをまとめています。応援よろしくお願いします

【Processing】120 cellを作る

成果物

www.youtube.com
あまりに美しかったので驚きました。

仕組み

頂点はこのようになっています。Φは黄金比です。また、辺の長さは2/(Φ*Φ)です。
permutations of
(0, 0, ±2, ±2)
(±1, ±1, ±1, ±√5)
(±φ−2, ±φ, ±φ, ±φ)
(±φ−1, ±φ−1, ±φ−1, ±φ2)
and all even permutations of
(0, ±φ−2, ±1, ±φ2)
(0, ±φ−1, ±φ, ±√5)
(±φ−1, ±1, ±φ, ±2)
en.wikipedia.org
後は600 cell と同様に作成できます。
nekodigi.hatenablog.com

ダウンロード

120 cellという名前で追加しています。
github.com