# Examples from pyvista.plotting.picking.PickingComponent.enable_rectangle_picking
# ================================================================================

# Add a mesh and a cube to a plot and enable cell picking.
import pyvista as pv
mesh = pv.Sphere(center=(1, 0, 0))
cube = pv.Cube()
pl = pv.Plotter()
_ = pl.add_mesh(mesh)
_ = pl.add_mesh(cube)
_ = pl.enable_rectangle_picking()

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

