MultiBlock.center#
- property MultiBlock.center: tuple[float, float, float][source]#
Set or return the center of the bounding box.
Changed in version 0.47: Center can now be set.
Examples#
Download Python source code | Download Jupyter notebook
>>> 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.])