]> SALOME platform Git repositories - modules/smesh.git/blob - doc/salome/examples/transforming_meshes_ex01.py
Salome HOME
update of messages
[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)