# Examples from pyvista.Cylinder
# ==============================

import pyvista as pv
cylinder = pv.Cylinder(
    center=[1, 2, 3], direction=[1, 1, 1], radius=1, height=2
)
cylinder.plot(show_edges=True, line_width=5, cpos='xy')

pl = pv.Plotter()
_ = pl.add_mesh(
    pv.Cylinder(center=[1, 2, 3], direction=[1, 1, 1], radius=1, height=2),
    show_edges=True,
    line_width=5,
)
pl.camera_position = 'xy'
pl.show()

# The above examples are similar in terms of their behavior.
# See Build a Ball-and-Stick Molecule for more examples using this function.

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

