# Examples from pyvista.PolyDataFilters.tube
# ==========================================

# Convert a single line to a tube.
import pyvista as pv
line = pv.Line()
tube = line.tube(radius=0.02)
f'Line Cells: {line.n_cells}'
f'Tube Cells: {tube.n_cells}'
tube.plot(color='lightblue')

# ----------------------------------------------------------------------
# Generated by sphinx-examples-as-code https://github.com/pyvista/sphinx-examples-as-code
