# Examples from pyvista.Actor.use_bounds
# ======================================

# Create an actor using the `pyvista.Plotter` and then change the
# use of bounds for the actor.
import pyvista as pv
from pyvista import examples
mesh = examples.load_airplane()
pl = pv.Plotter()
actor = pl.add_mesh(mesh)
pl.bounds

actor.use_bounds = False
pl.bounds

# Although the actor's bounds are no longer used, the actor remains visible.
actor.visibility

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

