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

# Shows an interactive slider controlling the range of the threshold.
import pyvista as pv
from pyvista import examples
pl = pv.Plotter()
mesh = examples.load_random_hills()
_ = pl.add_mesh(mesh.outline())
_ = pl.add_mesh_threshold(mesh)
pl.show()

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