Cube#
- class k3d.platonic.Cube(origin: List[float] | ndarray = [0, 0, 0], size: float = 1)[source]#
Bases:
PlatonicSolidCreate a cube.
See also
Example#
import k3d
from k3d import platonic
plot = k3d.plot()
cube_1 = platonic.Cube()
cube_2 = platonic.Cube(origin=[5, -2, 3], size=0.5)
plot += cube_1.mesh
plot += cube_2.mesh
plot.display()