# Examples from pyvista.Plotter.generate_orbital_path
# ===================================================

# Generate an orbital path around a sphere.
import pyvista as pv
pl = pv.Plotter()
_ = pl.add_mesh(pv.Sphere())
viewup = [0, 0, 1]
orbit = pl.generate_orbital_path(
    factor=2.0, n_points=50, shift=0.0, viewup=viewup
)

# See Orbiting for a full example using this method.

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

