pyvista.ExplicitStructuredGrid.visible_bounds#
- property ExplicitStructuredGrid.visible_bounds: pyvista.BoundsLike[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:
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)