Dodecahedron#
- class k3d.platonic.Dodecahedron(origin: List[float] | ndarray = [0, 0, 0], size: float = 1)[source]#
Bases:
PlatonicSolidCreate a dodecahedron solid.
See also
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()