smesh/doc/examples/transforming_meshes_ex01.py

10 lines
195 B
Python
Raw Permalink Normal View History

2013-02-12 20:37:44 +06:00
# Translation
2022-04-11 18:28:01 +05:00
from mechanic import *
2013-02-12 20:37:44 +06:00
# define translation vector
vector = [-150., -150., 0.]
2013-02-12 20:37:44 +06:00
# make a translated copy of all elements of the mesh
mesh.TranslateObject(mesh, vector, Copy=True)