Salome HOME
projects
/
modules
/
smesh.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Fix polyhedron on penta
[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)