mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-27 09:50:34 +05:00
17 lines
280 B
Python
17 lines
280 B
Python
# Translation
|
|
|
|
import SMESH_mechanic
|
|
import SMESH
|
|
|
|
smesh = SMESH_mechanic.smesh
|
|
mesh = SMESH_mechanic.mesh
|
|
|
|
# define translation vector
|
|
point = SMESH.PointStruct(-150., -150., 0.)
|
|
vector =SMESH.DirStruct(point)
|
|
|
|
# translate a mesh
|
|
doCopy = 1
|
|
|
|
mesh.Translate([], vector, doCopy)
|