_PointSetBase.remove_cells#
- _PointSetBase.remove_cells( ) _PointSetBase[source]#
Remove cells.
- Parameters:
- Returns:
pyvista.DataSetSame type as the input, but with the specified cells removed.
Examples#
Download Python source code | Download Jupyter notebook
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)
Used In#
Gallery Examples