Platonic solids

There is a selection of functions generating k3d.mesh objects for basic platonic solids.

[1]:
from k3d.platonic import Cube, Icosahedron, \
    Dodecahedron, Tetrahedron, Octahedron
[2]:
cube_mesh = Cube(origin=[1,1,1], size=0.1).mesh
cube_mesh.color = 0xff0000
cube_mesh
[3]:
tetrahedron_mesh = Tetrahedron().mesh
tetrahedron_mesh.wireframe = True
Octahedron().mesh + tetrahedron_mesh
[4]:
Icosahedron().mesh + Dodecahedron().mesh