mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-14 09:38:33 +05:00
12 lines
223 B
Python
12 lines
223 B
Python
# Translation
|
|
|
|
import SMESH_mechanic
|
|
|
|
mesh = SMESH_mechanic.mesh
|
|
|
|
# define translation vector
|
|
vector = [-150., -150., 0.]
|
|
|
|
# make a translated copy of all elements of the mesh
|
|
mesh.TranslateObject(mesh, vector, Copy=True)
|