pyvista.DataSet.n_cells#
- property DataSet.n_cells: int[source]#
Return the number of cells in the entire dataset.
- Returns:
intNumber of cells in the entire dataset.
Notes
This is identical to
n_facesinpyvista.PolyData.Examples
Create a mesh and return the number of cells in the mesh.
>>> import pyvista >>> cube = pyvista.Cube() >>> cube.n_cells 6