mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-12 00:29:17 +05:00
16 lines
268 B
Python
16 lines
268 B
Python
|
# Translation
|
||
|
|
||
|
import SMESH_mechanic
|
||
|
|
||
|
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)
|