# Examples from pyvista.DataObjectFilters.rotate_vector
# =====================================================

# Rotate a mesh 30 degrees about the `(1, 1, 1)` axis.
import pyvista as pv
mesh = pv.Cube()
rot = mesh.rotate_vector((1, 1, 1), 30, inplace=False)

# Plot the rotated mesh.
pl = pv.Plotter()
_ = pl.add_mesh(rot)
_ = pl.add_mesh(mesh, style='wireframe', line_width=3)
_ = pl.add_axes_at_origin()
pl.show()

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