PlatonicSolid(kind='tetrahedron', radius=1.0, center=(0.0, 0.0, 0.0))

Create a Platonic solid of a given size.

kindstr or int, optional

The kind of Platonic solid to create. Either the name of the polyhedron or an integer index:

  • 'tetrahedron' or 0

  • 'cube' or 1

  • 'octahedron' or 2

  • 'icosahedron' or 3

  • 'dodecahedron' or 4

radiusfloat, optional

The radius of the circumscribed sphere for the solid to create.

centersequence, optional

Three-length sequence defining the center of the solid to create.


One of the five Platonic solids. Cell scalars are defined that assign integer labels to each face (with array name "FaceIndex").


Create and plot a dodecahedron.

>>> import pyvista
>>> dodeca = pyvista.PlatonicSolid('dodecahedron')
>>> dodeca.plot(categories=True)

See Platonic Solids for more examples using this filter.