pyvista.PolyData.n_lines#
- property PolyData.n_lines: int[source]#
Return the number of line cells.
This is the total number of
LINEandPOLY_LINEcells defined in thelinesconnectivity array.See also
linesn_verts,n_faces_strict,n_stripsNumber of cells in other connectivity arrays.
pyvista.DataSet.n_cells,pyvista.DataSet.n_pointsNumber of total cells and points in this mesh.
Examples
>>> import pyvista as pv >>> mesh = pv.Line() >>> mesh.n_lines, mesh.n_cells (1, 1)