Octahedron#

Octahedron(radius=1.0, center=(0.0, 0.0, 0.0))[source]#

Create an octahedron of a given size.

An octahedron is composed of eight congruent equilateral triangles.

Parameters
radiusfloat, optional

The radius of the circumscribed sphere for the octahedron.

centersequence, optional

Three-length sequence defining the center of the octahedron.

Returns
pyvista.PolyData

Mesh for the octahedron. Cell scalars are defined that assign integer labels to each face (with array name "FaceIndex").

Examples

Create and plot an octahedron.

>>> import pyvista
>>> tetra = pyvista.Octahedron()
>>> tetra.plot(categories=True)
../../../_images/pyvista-Octahedron-1_00_00.png

See Platonic Solids for more examples using this filter.