6 gg = salome.ImportComponentGUI("GEOM")
9 px = geompy.MakeVertex(100., 0., 0.)
10 py = geompy.MakeVertex(0., 100., 0.)
11 pz = geompy.MakeVertex(0., 0., 100.)
13 # create base geometry 2D & 3D
14 vector = geompy.MakeVector(px, py)
15 arc = geompy.MakeArc(py, pz, px)
18 angle = 45. * math.pi / 180
19 WantPlanarFace = 1 #True
20 wire = geompy.MakeWire([vector, arc])
21 face = geompy.MakeFace(wire, WantPlanarFace)
22 face_rot = geompy.MakeRotation(face, vector, angle)
26 sewing = geompy.MakeSewing([face, face_rot], precision)
28 # add objects in the study
29 id_face = geompy.addToStudy(face, "Face")
30 id_face_rot = geompy.addToStudy(face_rot, "Face rotation")
31 id_sewing = geompy.addToStudy(sewing, "Sewing")
34 gg.createAndDisplayGO(id_face)
35 gg.setDisplayMode(id_face,1)
36 gg.createAndDisplayGO(id_face_rot)
37 gg.setDisplayMode(id_face_rot,1)
38 gg.createAndDisplayGO(id_sewing)
39 gg.setDisplayMode(id_sewing,1)