Salome HOME
bos #29171 Refactor testing procedure
[modules/smesh.git] / doc / examples / transforming_meshes_ex02.py
diff --git a/doc/examples/transforming_meshes_ex02.py b/doc/examples/transforming_meshes_ex02.py
new file mode 100644 (file)
index 0000000..d516a79
--- /dev/null
@@ -0,0 +1,12 @@
+# Rotation
+
+import math
+
+from mechanic import *
+
+# define rotation axis and angle
+axisXYZ = SMESH.AxisStruct(0., 0., 0., 5., 5., 20.)
+angle270 = 1.5 * math.pi
+
+# rotate a mesh
+mesh.Rotate([], axisXYZ, angle270, 1)