Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 539 Bytes

factory.Cube.rst

File metadata and controls

37 lines (26 loc) · 539 Bytes

Cube

k3d.platonic.Cube

- Dodecahedron - Icosahedron - Octahedron - Tetrahedron

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