smesh/doc/examples/transforming_meshes_ex02.py

13 lines
216 B
Python
Raw Permalink Normal View History

2013-02-12 20:37:44 +06:00
# Rotation
import math
2022-04-11 18:28:01 +05:00
from mechanic import *
2013-02-12 20:37:44 +06:00
# define rotation axis and angle
axisXYZ = SMESH.AxisStruct(0., 0., 0., 5., 5., 20.)
2013-02-12 20:37:44 +06:00
angle270 = 1.5 * math.pi
# rotate a mesh
mesh.Rotate([], axisXYZ, angle270, 1)