pyvista.ExplicitStructuredGrid.hide_cells#
- ExplicitStructuredGrid.hide_cells( ) ExplicitStructuredGrid[source]#
Hide specific cells.
Hides cells by setting the ghost cell array to
HIDDENCELL.- Parameters:
- Returns:
ExplicitStructuredGridorNoneA deep copy of this grid if
inplace=Falsewith 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)