lines

property PolyData.lines

Return a pointer to the lines as a numpy array.

Examples

Return the lines from a spline.

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