pyvista.PolyData.lines#

property PolyData.lines: NumpyArray[int][source]#

Return the connectivity array of the lines of this PolyData.

Lines can also be set by assigning a pyvista.CellArray.

Examples

Return the lines from a spline.

>>> import pyvista as pv
>>> import numpy as np
>>> points = np.random.default_rng().random((3, 3))
>>> spline = pv.Spline(points, 10)
>>> spline.lines
array([10,  0,  1,  2,  3,  4,  5,  6,  7,  8,  9])