Platonic solids


In [1]:
from k3d.platonic import Cube, Icosahedron, \
    Dodecahedron, Tetrahedron, Octahedron

In [2]:
cube_mesh = Cube(origin=[1,1,1], size=0.1).mesh
cube_mesh.color = 0xff0000
cube_mesh



In [3]:
tetrahedron_mesh = Tetrahedron().mesh
tetrahedron_mesh.wireframe = True
Octahedron().mesh + tetrahedron_mesh



In [4]:
Icosahedron().mesh + Dodecahedron().mesh