Salome HOME
bos #29171 Refactor testing procedure
[modules/smesh.git] / doc / examples / transforming_meshes_ex02.py
1 # Rotation
2
3 import math
4
5 from mechanic import *
6
7 # define rotation axis and angle
8 axisXYZ = SMESH.AxisStruct(0., 0., 0., 5., 5., 20.)
9 angle270 = 1.5 * math.pi
10
11 # rotate a mesh
12 mesh.Rotate([], axisXYZ, angle270, 1)