n_cells#

property DataSet.n_cells: int#

Return the number of cells in the entire dataset.

Notes

This is identical to n_faces in pyvista.PolyData.

Examples

Create a mesh and return the number of cells in the mesh.

>>> import pyvista
>>> cube = pyvista.Cube()
>>> cube.n_cells
6