pyvista.DataSet.n_points#

property DataSet.n_points: int[source]#

Return the number of points in the entire dataset.

Returns:
int

Number of points in the entire dataset.

Examples

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

>>> import pyvista as pv
>>> cube = pv.Cube()
>>> cube.n_points
8