# Examples from pyvista.DataObjectFilters.translate
# =================================================

# Create a sphere and translate it by `(2, 1, 2)`.
import pyvista as pv
mesh = pv.Sphere()
mesh.center
trans = mesh.translate((2, 1, 2), inplace=False)
trans.center

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

