pyvista.Prop3D.center

Contents

pyvista.Prop3D.center#

property Prop3D.center: tuple[float, float, float][source]#

Return the center of the entity.

Examples

>>> import pyvista as pv
>>> pl = pv.Plotter()
>>> actor = pl.add_mesh(pv.Sphere(center=(0.5, 0.5, 1)))
>>> actor.center  
(0.5, 0.5, 1)