Salome HOME
Update of CheckDone
[modules/smesh.git] / doc / examples / modifying_meshes_ex24.py
1 # Revolution
2
3 import math
4
5 from mechanic import *
6
7 # create a group of faces to be revolved
8 FacesRotate = [492, 493, 502, 503]
9 GroupRotate = mesh.CreateEmptyGroup(SMESH.FACE,"Group of faces (rotate)")
10 GroupRotate.Add(FacesRotate)
11
12 # define revolution angle and axis
13 angle45 = 45 * math.pi / 180
14 axisXYZ = SMESH.AxisStruct(-38.3128, -73.3658, -23.321, -13.3402, -13.3265, 6.66632)
15
16 # perform revolution of an object
17 mesh.RotationSweepObject(GroupRotate, axisXYZ, angle45, 4, 1e-5)