show_cells#

ExplicitStructuredGrid.show_cells(inplace=False) ExplicitStructuredGrid[source]#

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 = grid.hide_cells(range(80, 120))
>>> grid.plot(color='w', show_edges=True, show_bounds=True)
../../../_images/pyvista-ExplicitStructuredGrid-show_cells-1_00_00.png
>>> grid = grid.show_cells()
>>> grid.plot(color='w', show_edges=True, show_bounds=True)
../../../_images/pyvista-ExplicitStructuredGrid-show_cells-1_01_00.png