mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-01 04:10:33 +05:00
16 lines
273 B
Python
16 lines
273 B
Python
|
# Rotation
|
||
|
|
||
|
import math
|
||
|
|
||
|
import SMESH_mechanic
|
||
|
|
||
|
smesh = SMESH_mechanic.smesh
|
||
|
mesh = SMESH_mechanic.mesh
|
||
|
|
||
|
# 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)
|