pyvista.MultiBlock.center#

property MultiBlock.center: NumpyArray[float][source]#

Return the center of the bounding box.

Returns:
np.ndarray

Center of the bounding box.

Examples

>>> import pyvista as pv
>>> data = [
...     pv.Sphere(center=(2, 0, 0)),
...     pv.Cube(center=(0, 2, 0)),
...     pv.Cone(),
... ]
>>> blocks = pv.MultiBlock(data)
>>> blocks.center  
array([1., 1., 0.])