Dodecahedron#
- Dodecahedron(radius: float = 1.0, center: VectorLikeFloat = (0.0, 0.0, 0.0)) PolyData[source]#
Create a dodecahedron of a given size.
A dodecahedron is composed of twelve congruent regular pentagons.
- Parameters:
- radius
float, default: 1.0 The radius of the circumscribed sphere for the dodecahedron.
- center
VectorLikeFloat, default: (0.0, 0.0, 0.0) Three-length sequence defining the center of the dodecahedron.
- radius
- Returns:
pyvista.PolyDataMesh for the dodecahedron. 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 dodecahedron.
>>> import pyvista as pv
>>> tetra = pv.Dodecahedron()
>>> tetra.plot(categories=True)
See Platonic Solids for more examples using this filter.