translate#
- translate(
- surf: DataSet,
- center: VectorLike[float] = (0.0, 0.0, 0.0),
- direction: VectorLike[float] = (1.0, 0.0, 0.0),
Translate and orient a mesh to a new center and direction.
By default, the input mesh is considered centered at the origin and facing in the x direction.
- Parameters:
- surf
pyvista.core.pointset.PolyData Mesh to be translated and oriented.
- center
tuple,optional, default: (0.0, 0.0, 0.0) Center point to which the mesh should be translated.
- direction
tuple,optional, default: (1.0, 0.0, 0.0) Direction vector along which the mesh should be oriented.
- surf