pyvista.DataSet.center#

property DataSet.center: List[float] | Tuple[float, float, float] | ndarray[source]#

Return the center of the bounding box.

Returns:
Vector

Center of the bounding box.

Examples

Get the center of a mesh.

>>> import pyvista
>>> mesh = pyvista.Sphere(center=(1, 2, 0))
>>> mesh.center
[1.0, 2.0, 0.0]