DataSet.bounds#
- property DataSet.bounds: BoundsTuple[source]#
Return the bounding box of this dataset.
- Returns:
BoundsLikeBounding box of this dataset. The form is:
(x_min, x_max, y_min, y_max, z_min, z_max).
Examples#
Download Python source code | Download Jupyter notebook
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)