pyvista.Cell.center

Contents

pyvista.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.

Returns:
tuple[float, float, float]

The center of the cell.

Examples

>>> import pyvista as pv
>>> mesh = pv.Sphere()
>>> mesh.get_cell(0).center
(0.03564589594801267, 0.0037465346977114677, 0.49804598093032837)