bounds

property PolyData.bounds: List[float]

Return the 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
>>> cube = pyvista.Cube().clean()
>>> cube.bounds
[-0.5, 0.5, -0.5, 0.5, -0.5, 0.5]