Salome HOME
projects
/
modules
/
smesh.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
f96a6bb41bf1c1d363e8aa04fc07cbe6480475f2
[modules/smesh.git]
/
doc
/
salome
/
examples
/
transforming_meshes_ex02.py
1
# Rotation
2
3
import math
4
5
import SMESH_mechanic
6
7
smesh = SMESH_mechanic.smesh
8
mesh = SMESH_mechanic.mesh
9
10
# define rotation axis and angle
11
axisXYZ = smesh.AxisStruct(0., 0., 0., 5., 5., 20.)
12
angle270 = 1.5 * math.pi
13
14
# rotate a mesh
15
mesh.Rotate([], axisXYZ, angle270, 1)