# Examples from pyvista.UnstructuredGrid.cells
# ============================================

# Return the indices of the first two cells from the example hex
# beam.  Note how the cells have "padding" indicating the number
# of points per cell.
import pyvista as pv
from pyvista import examples
grid = examples.load_hexbeam()
grid.cells[:18]

# While you cannot change the array inplace, you can overwrite it. For example:
grid.cells = [8, 0, 1, 2, 3, 4, 5, 6, 7]

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

