Cell.center#
- property Cell.center: tuple[float, float, float][source]#
Get the center of the cell.
Uses parametric coordinate center to determine x-y-z center.
Examples#
Download Python source code | Download Jupyter notebook
>>> import pyvista as pv
>>> mesh = pv.Sphere()
>>> mesh.get_cell(0).center
(0.03564589594801267, 0.0037465346977114677, 0.49804598093032837)