Salome HOME
projects
/
modules
/
smesh.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
0ea75cc8523ddebe1fac3da725d058cc8c3950d5
[modules/smesh.git]
/
doc
/
salome
/
examples
/
transforming_meshes_ex01.py
1
# Translation
2
3
import SMESH_mechanic
4
5
smesh = SMESH_mechanic.smesh
6
mesh = SMESH_mechanic.mesh
7
8
# define translation vector
9
point = smesh.PointStruct(-150., -150., 0.)
10
vector =smesh.DirStruct(point)
11
12
# translate a mesh
13
doCopy = 1
14
15
mesh.Translate([], vector, doCopy)