pyvista.Dodecahedron#
- Dodecahedron(radius=1.0, center=(0.0, 0.0, 0.0))[source]#
Create a dodecahedron of a given size.
A dodecahedron is composed of twelve congruent regular pentagons.
- Parameters:
- Returns:
pyvista.PolyData
Mesh for the dodecahedron. Cell scalars are defined that assign integer labels to each face (with array name
"FaceIndex"
).
Examples
Create and plot a dodecahedron.
>>> import pyvista as pv >>> tetra = pv.Dodecahedron() >>> tetra.plot(categories=True)
See Platonic Solids for more examples using this filter.