8 mesh = SMESH_mechanic.mesh
9 smesh = SMESH_mechanic.smesh
11 # create a group of faces to be revolved
12 FacesRotate = [492, 493, 502, 503]
13 GroupRotate = mesh.CreateEmptyGroup(SMESH.FACE,"Group of faces (rotate)")
14 GroupRotate.Add(FacesRotate)
16 # define revolution angle and axis
17 angle45 = 45 * math.pi / 180
18 axisXYZ = SMESH.AxisStruct(-38.3128, -73.3658, -23.321, -13.3402, -13.3265, 6.66632)
20 # perform revolution of an object
21 mesh.RotationSweepObject(GroupRotate, axisXYZ, angle45, 4, 1e-5)