# Examples from pyvista.core.pointset._PointSetBase.remove_cells
# ==============================================================

# Remove 20 cells from an unstructured grid.
from pyvista import examples
import pyvista as pv
hex_mesh = pv.read(examples.hexbeamfile)
removed = hex_mesh.remove_cells(range(10, 20))
removed.plot(color='lightblue', show_edges=True, line_width=3)

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