Hover the mouse around the screen to rotate polyhedra. Click buttons on the right side of the screen to change the polyhedron. マウスを動かして多面体を回転します。画面右のボタンで多面体を切り替えます。
The below project is faster to render than this. It uses back-face culling method: https://scratch.mit.edu/projects/412214368/ My original project that renders 3D objects pixel by pixel: https://scratch.mit.edu/projects/398823781/ This algorithm renders a 3D object row by row. When the number of component triangles is small, this algorithm is faster than rendering them pixel by pixel. Cartesian coordinates of the vertices of Platonic solids: https://en.wikipedia.org/wiki/Platonic_solid#Cartesian_coordinates 下のプロジェクトの方がレンダリングが速いです。バックフェースカリングを用いています。 https://scratch.mit.edu/projects/412214368/ 私の原作(ピクセル単位でレンダリング): https://scratch.mit.edu/projects/398823781/ このアルゴリズムは3D物体を行単位でレンダリングします。 構成する三角形が少ない場合は、ピクセル単位でレンダリングするよりも処理速度が高くなります。 正多面体のデカルト座標(英語): https://en.wikipedia.org/wiki/Platonic_solid#Cartesian_coordinates