Dodecahedron#

class k3d.platonic.Dodecahedron(origin=[0, 0, 0], size=1)[source]#

Bases: k3d.platonic.PlatonicSolid

Create a dodecahedron solid.

Example#

import k3d
from k3d import platonic

plot = k3d.plot()

dodec_1 = platonic.Dodecahedron()
dodec_2 = platonic.Dodecahedron(origin=[5, -2, 3], size=0.5)

plot += dodec_1.mesh
plot += dodec_2.mesh

plot.display()