# Examples from pyvista.CylinderSource
# ====================================

# Create a default CylinderSource.
import pyvista as pv
source = pv.CylinderSource()
source.output.plot(show_edges=True, line_width=5)

# Display a 3D plot of a default `CylinderSource`.
import pyvista as pv
pl = pv.Plotter()
_ = pl.add_mesh(pv.CylinderSource(), show_edges=True, line_width=5)
pl.show()

# Visualize the output of `CylinderSource` in a 3D plot.
pl = pv.Plotter()
_ = pl.add_mesh(pv.CylinderSource().output, show_edges=True, line_width=5)
pl.show()

# The above examples are similar in terms of their behavior.

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

