pyvista.DataSet.bounds#
- property DataSet.bounds: Tuple[float | int | number, float | int | number, float | int | number, float | int | number, float | int | number, float | int | number][source]#
Return the bounding box of this dataset.
- Returns:
BoundsLikeBounding 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 >>> cube = pyvista.Cube() >>> cube.bounds (-0.5, 0.5, -0.5, 0.5, -0.5, 0.5)