mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-27 09:50:34 +05:00
13 lines
216 B
Python
13 lines
216 B
Python
# Rotation
|
|
|
|
import math
|
|
|
|
from mechanic import *
|
|
|
|
# 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)
|