n_verts

property PolyData.n_verts

Return the number of vertices.

Examples

Create a simple mesh containing just two points and return the number of vertices.

>>> import pyvista
>>> mesh = pyvista.PolyData([[1, 0, 0], [1, 1, 1]])
>>> mesh.n_verts
2