# Examples from pyvista.Cell
# ==========================

# Get the 0-th cell from a `pyvista.PolyData`.
import pyvista as pv
mesh = pv.Sphere()
cell = mesh.get_cell(0)
cell

# Get the 0-th cell from a `pyvista.UnstructuredGrid`.
from pyvista import examples
mesh = examples.load_hexbeam()
cell = mesh.get_cell(0)
cell

# ----------------------------------------------------------------------
# Generated by sphinx-examples-as-code https://github.com/pyvista/sphinx-examples-as-code

