show_cells

ExplicitStructuredGrid.show_cells(inplace=True)

Show hidden cells.

Shows hidden cells by setting the ghost cell array to 0 where HIDDENCELL.

Parameters
inplacebool, optional

This method is applied to this grid if True (default) or to a copy otherwise.

Returns
ExplicitStructuredGrid

A deep copy of this grid if inplace=False with the hidden cells shown. Otherwise, this dataset with the shown cells.

Examples

>>> from pyvista import examples
>>> grid = examples.load_explicit_structured()
>>> _ = grid.hide_cells(range(80, 120), inplace=True)
>>> grid.plot(color='w', show_edges=True, show_bounds=True)
../../../_images/pyvista-ExplicitStructuredGrid-show_cells-1_00_00.png
>>> _ = grid.show_cells(inplace=True)
>>> grid.plot(color='w', show_edges=True, show_bounds=True)
../../../_images/pyvista-ExplicitStructuredGrid-show_cells-1_01_00.png