# Examples from pyvista.Plotter.enable_terrain_style
# ==================================================

# Create a simple scene with a plotter that has the Terrain
# interactive style:
import pyvista as pv
pl = pv.Plotter()
_ = pl.add_mesh(pv.Cube(center=(1, 0, 0)))
_ = pl.add_mesh(pv.Cube(center=(0, 1, 0)))
pl.show_axes()
pl.enable_terrain_style()
pl.show()

# Use controls that are closer to the default style:
pl = pv.Plotter()

_ = pl.add_mesh(pv.Cube(center=(1, 0, 0)))
_ = pl.add_mesh(pv.Cube(center=(0, 1, 0)))
pl.show_axes()
pl.enable_terrain_style(mouse_wheel_zooms=True, shift_pans=True)
pl.show()

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

