Tetrahedron#
- Tetrahedron(radius=1.0, center=(0.0, 0.0, 0.0))[source]#
Create a tetrahedron of a given size.
A tetrahedron is composed of four congruent equilateral triangles.
- Parameters:
- radius
float
, default: 1.0 The radius of the circumscribed sphere for the tetrahedron.
- center
Sequence
, default: (0.0, 0.0, 0.0) Three-length sequence defining the center of the tetrahedron.
- radius
- Returns:
pyvista.PolyData
Mesh for the tetrahedron. Cell scalars are defined that assign integer labels to each face (with array name
"FaceIndex"
).
Examples
Create and plot a tetrahedron.
>>> import pyvista >>> tetra = pyvista.Tetrahedron() >>> tetra.plot(categories=True)
See Platonic Solids for more examples using this filter.