pyvista.DataSet.bounds#

property DataSet.bounds: Tuple[int | float, int | float, int | float, int | float, int | float, int | float][source]#

Return the bounding box of this dataset.

Returns:
BoundsLike

Bounding box of this dataset. The form is: (xmin, xmax, ymin, ymax, zmin, zmax).

Examples

Create a cube and return the bounds of the mesh.

>>> import pyvista as pv
>>> cube = pv.Cube()
>>> cube.bounds
(-0.5, 0.5, -0.5, 0.5, -0.5, 0.5)