StructuredGrid.hide_cells#
- StructuredGrid.hide_cells(
- ind: VectorLikeInt | VectorLikeBool,
- *,
- inplace: bool = False,
Hide cells without deleting them.
Hides cells by setting the
ghost_cellsarray toHIDDENCELL.- Parameters:
- ind
VectorLikeInt|VectorLikeBool List or array of cell indices to be hidden. The array can also be a boolean array of the same size as the number of cells.
- inplacebool, default:
False Updates mesh in-place.
- ind
- Returns:
pyvista.StructuredGridStructured grid with hidden cells.
Examples#
Download Python source code | Download Jupyter notebook
Hide part of the middle of a structured surface.