Create Connected Lines From Points#
Download Python source code | Download Jupyter notebook
Build a polyline from ordered points with pyvista.MultipleLines().
import numpy as np
import pyvista as pv
Create a Winding PolyLine#
The points are connected in the order they are given.
Plot the Line as a Tube#
Tubing the polyline gives it visible thickness in 3D.
pl = pv.Plotter()
pl.add_mesh(line.tube(radius=0.08), scalars='height', cmap='viridis')
pl.show()

Total running time of the script: (0 minutes 0.657 seconds)