smesh/doc/examples/transforming_meshes_ex01.py
2022-04-13 19:00:37 +03:00

10 lines
195 B
Python

# Translation
from mechanic import *
# define translation vector
vector = [-150., -150., 0.]
# make a translated copy of all elements of the mesh
mesh.TranslateObject(mesh, vector, Copy=True)