pyvista.ExplicitStructuredGrid.visible_bounds#

property ExplicitStructuredGrid.visible_bounds: Tuple[int | float, int | float, int | float, int | float, int | float, int | float][source]#

Return the bounding box of the visible cells.

Different from bounds, which returns the bounding box of the complete grid, this method returns the bounding box of the visible cells, where the ghost cell array is not HIDDENCELL.

Returns:
tuple[float, float, float]

The limits of the visible grid in the X, Y and Z directions respectively.

Examples

>>> from pyvista import examples
>>> grid = examples.load_explicit_structured()
>>> grid = grid.hide_cells(range(80, 120))
>>> grid.bounds
(0.0, 80.0, 0.0, 50.0, 0.0, 6.0)
>>> grid.visible_bounds
(0.0, 80.0, 0.0, 50.0, 0.0, 4.0)