Dodecahedron#

class k3d.platonic.Dodecahedron(origin: List[float] | ndarray = [0, 0, 0], size: float = 1)[source]#

Bases: 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()