n_cells#
- property StructuredGrid.n_cells: int#
Return the number of cells in the entire dataset.
Notes
This is identical to
n_faces
inpyvista.PolyData
.Examples
Create a mesh and return the number of cells in the mesh.
>>> import pyvista >>> cube = pyvista.Cube() >>> cube.n_cells 6