Salome HOME
Precise doc on sub-mesh priority
[modules/smesh.git] / doc / salome / examples / transforming_meshes_ex02.py
1 # Rotation
2
3 import math
4
5 import SMESH_mechanic
6 import SMESH
7
8 smesh = SMESH_mechanic.smesh
9 mesh = SMESH_mechanic.mesh 
10
11 # define rotation axis and angle
12 axisXYZ = SMESH.AxisStruct(0., 0., 0., 5., 5., 20.)
13 angle270 = 1.5 * math.pi
14
15 # rotate a mesh
16 mesh.Rotate([], axisXYZ, angle270, 1)