pyvista.ImageData.bounds#
- property ImageData.bounds: BoundsTuple[source]#
Return the bounding box of this dataset.
- Returns:
BoundsLike
Bounding box of this dataset. The form is:
(x_min, x_max, y_min, y_max, z_min, z_max)
.
Examples
Create a cube and return the bounds of the mesh.
>>> import pyvista as pv >>> cube = pv.Cube() >>> cube.bounds BoundsTuple(x_min=-0.5, x_max=0.5, y_min=-0.5, y_max=0.5, z_min=-0.5, z_max=0.5)