PlatonicSolid(kind='tetrahedron', radius=1.0, center=(0.0, 0.0, 0.0))[source]#

Create a Platonic solid of a given size.

kindstr or int, default: ‘tetrahedron’

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

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

centerSequence, default: (0.0, 0.0, 0.0)

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.