Salome HOME
projects
/
modules
/
smesh.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge remote branch 'origin/fbt/SMESH_Plugin_Verima_fix_ImportExport'
[modules/smesh.git]
/
doc
/
salome
/
examples
/
transforming_meshes_ex01.py
1
# Translation
2
3
import SMESH_mechanic
4
import SMESH
5
6
smesh = SMESH_mechanic.smesh
7
mesh = SMESH_mechanic.mesh
8
9
# define translation vector
10
point = SMESH.PointStruct(-150., -150., 0.)
11
vector =SMESH.DirStruct(point)
12
13
# translate a mesh
14
doCopy = 1
15
16
mesh.Translate([], vector, doCopy)