Tetrahedron#

class k3d.platonic.Tetrahedron(origin=[0, 0, 0], size=1)[source]#

Bases: k3d.platonic.PlatonicSolid

Create a tetrahedron solid.

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