visible_bounds

property ExplicitStructuredGrid.visible_bounds

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
list(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.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]