5 gg = salome.ImportComponentGUI("GEOM")
8 p0 = geompy.MakeVertex(0., 0., 0.)
9 px = geompy.MakeVertex(100., 0. , 0. )
10 py = geompy.MakeVertex(0. , 100., 0. )
11 pz = geompy.MakeVertex(0. , 0. , 100.)
13 # create a vector on two points
14 vxy = geompy.MakeVector(px, py)
16 # create a circle from a point, a vector and a radius
17 circle1 = geompy.MakeCircle(pz, vxy, 30)
19 #create a circle from three points
20 circle2 = geompy.MakeCircleThreePnt(p0, px, py)
22 # add objects in the study
23 id_vxy = geompy.addToStudy(vxy, "Vector")
24 id_circle1 = geompy.addToStudy(circle1,"Circle1")
25 id_circle2 = geompy.addToStudy(circle2,"Circle2")
28 gg.createAndDisplayGO(id_vxy)
29 gg.createAndDisplayGO(id_circle1)
30 gg.createAndDisplayGO(id_circle2)