# Examples from pyvista.plotting.widgets.WidgetComponent.add_camera3d_widget
# ==========================================================================

# Add a camera3d widget to the scene.
import pyvista as pv
sphere = pv.Sphere()
pl = pv.Plotter(shape=(1, 2))
_ = pl.add_mesh(sphere, show_edges=True)
pl.subplot(0, 1)
_ = pl.add_mesh(sphere, show_edges=True)
_ = pl.add_camera3d_widget()
pl.show(cpos=pl.camera_position)

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

