# Examples from pyvista.Transform.invert
# ======================================

# Compose an arbitrary transformation.
import pyvista as pv
transform = pv.Transform().scale(2.0)
transform.matrix

# Check if the transformation is inverted.
transform.is_inverted

# Invert the transformation and show the matrix.
_ = transform.invert()
transform.matrix

# Check that the transformation is inverted.
transform.is_inverted

# Invert it again to restore it back to its original state.
_ = transform.invert()
transform.matrix
transform.is_inverted

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

