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:
radiusfloat, default: 1.0

The radius of the circumscribed sphere for the dodecahedron.

centersequence[float], default: (0.0, 0.0, 0.0)

Three-length sequence defining the center of the dodecahedron.

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
>>> tetra = pyvista.Dodecahedron()
>>> tetra.plot(categories=True)
https://d33wubrfki0l68.cloudfront.net/67dd13c29c4a95b187cce0f09adf959ce1a4ff6b/6b9b9/_images/pyvista-dodecahedron-1_00_00.png

See Platonic Solids for more examples using this filter.