# Examples from pyvista.Prop3D.rotation_from
# ==========================================

# Create an actor and show its initial orientation.
import pyvista as pv
pl = pv.Plotter()
actor = pl.add_mesh(pv.Sphere())
actor.orientation

# Set the orientation using a 3x3 matrix.
actor.rotation_from([[0, 1, 0], [1, 0, 0], [0, 0, 1]])
actor.orientation

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

