ExplicitStructuredGrid.hide_cells#
- ExplicitStructuredGrid.hide_cells(ind: VectorLikeInt, *, inplace: bool = False) Self[source]#
Hide specific cells.
Hides cells by setting the ghost cell array to
HIDDENCELL.- Parameters:
- ind
VectorLikeInt Cell indices to be hidden. A boolean array of the same size as the number of cells also is acceptable.
- inplacebool, default:
False This method is applied to this grid if
Trueor to a copy otherwise.
- ind
- Returns:
- output
ExplicitStructuredGrid|None A deep copy of this grid if
inplace=Falsewith the hidden cells, or this grid with the hidden cells if otherwise.
- output
Examples#
Download Python source code | Download Jupyter notebook
>>> 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)
Used In#
API Examples