pyvista.ImageData.n_points

pyvista.ImageData.n_points#

property ImageData.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