pyvista.ExplicitStructuredGrid.show_cells#

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

Show hidden cells.

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

Parameters:
inplacebool, default: False

This method is applied to this grid if True 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)
https://d33wubrfki0l68.cloudfront.net/c7f6a7eaf9f312a7657c971f61955c0b4cc8e78b/15327/_images/pyvista-explicitstructuredgrid-show_cells-1_00_00.png
>>> grid = grid.show_cells()
>>> grid.plot(color='w', show_edges=True, show_bounds=True)
https://d33wubrfki0l68.cloudfront.net/033fa423bca747fe7ea1b67324416f485cb5cec5/40cb6/_images/pyvista-explicitstructuredgrid-show_cells-1_01_00.png