smesh/doc/salome/examples/transforming_meshes_ex01.py

17 lines
280 B
Python
Raw Normal View History

2013-02-12 20:37:44 +06:00
# Translation
import SMESH_mechanic
import SMESH
2013-02-12 20:37:44 +06:00
smesh = SMESH_mechanic.smesh
mesh = SMESH_mechanic.mesh
# define translation vector
point = SMESH.PointStruct(-150., -150., 0.)
vector =SMESH.DirStruct(point)
2013-02-12 20:37:44 +06:00
# translate a mesh
doCopy = 1
mesh.Translate([], vector, doCopy)