Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
bos #29171 Refactor testing procedure
[modules/smesh.git]
/
doc
/
examples
/
transforming_meshes_ex01.py
diff --git a/doc/examples/transforming_meshes_ex01.py
b/doc/examples/transforming_meshes_ex01.py
new file mode 100644
(file)
index 0000000..
27dd161
--- /dev/null
+++ b/
doc/examples/transforming_meshes_ex01.py
@@ -0,0
+1,9
@@
+# Translation
+
+from mechanic import *
+
+# define translation vector
+vector = [-150., -150., 0.]
+
+# make a translated copy of all elements of the mesh
+mesh.TranslateObject(mesh, vector, Copy=True)