pyvista.PolyData.lines#

property PolyData.lines: ndarray[Any, dtype[integer]][source]#

Return a pointer to the lines as a numpy array.

Examples

Return the lines from a spline.

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