PolyData.n_lines

Contents

PolyData.n_lines#

property PolyData.n_lines: int[source]#

Return the number of line cells.

This is the total number of LINE and POLY_LINE cells defined in the lines connectivity array.

See also

lines
n_verts, n_faces, n_strips

Number of cells in other connectivity arrays.

pyvista.DataSet.n_cells, pyvista.DataSet.n_points

Number of total cells and points in this mesh.

Examples#

Download Python source code | Download Jupyter notebook

>>> import pyvista as pv
>>> mesh = pv.Line()
>>> mesh.n_lines, mesh.n_cells
(1, 1)