smesh/doc/salome/examples/transforming_meshes_ex01.py

12 lines
223 B
Python
Raw Normal View History

2013-02-12 20:37:44 +06:00
# Translation
import SMESH_mechanic
mesh = SMESH_mechanic.mesh
# 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)