ImageData.center#
- property ImageData.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
Get the center of a mesh.
>>> import pyvista as pv
>>> mesh = pv.Sphere(center=(1, 2, 0))
>>> mesh.center
(1.0, 2.0, 0.0)