pyvista.ExplicitStructuredGrid.hide_cells#
- ExplicitStructuredGrid.hide_cells(
- ind: ndarray[Any, dtype[int]] | Sequence[int] | Sequence[ndarray[Any, dtype[int]]],
- inplace: bool = False,
Hide specific cells.
Hides cells by setting the ghost cell array to
HIDDENCELL
.- Parameters:
- Returns:
ExplicitStructuredGrid
orNone
A deep copy of this grid if
inplace=False
with the hidden cells, or this grid with the hidden cells if otherwise.
Examples
>>> from pyvista import examples >>> grid = examples.load_explicit_structured() >>> grid = grid.hide_cells(range(80, 120)) >>> grid.plot(color='w', show_edges=True, show_bounds=True)