Tetrahedron#
- Tetrahedron(
- radius: float = 1.0,
- center: VectorLike[float] = (0.0, 0.0, 0.0),
Create a tetrahedron of a given size.
A tetrahedron is composed of four congruent equilateral triangles.
- Parameters:
- Returns:
pyvista.PolyDataMesh for the tetrahedron. Cell scalars are defined that assign integer labels to each face (with array name
"FaceIndex").
Examples#
Download Python source code | Download Jupyter notebook
Create and plot a tetrahedron.
>>> import pyvista as pv
>>> tetra = pv.Tetrahedron()
>>> tetra.plot(categories=True)
See Platonic Solids for more examples using this filter.