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