6 from salome.geom import geomBuilder
7 geompy = geomBuilder.New(salome.myStudy)
8 gg = salome.ImportComponentGUI("GEOM")
11 p = geompy.MakeVertex(55, 45, 25)
15 sphere1 = geompy.MakeSpherePntR(p, radius1)
17 sphere2 = geompy.MakeSphere(0, 0, 45, radius2)
19 sphere3 = geompy.MakeSphereR(radius3)
21 # add objects in the study
22 id_sphere1 = geompy.addToStudy(sphere1,"Sphere1")
23 id_sphere2 = geompy.addToStudy(sphere2,"Sphere2")
24 id_sphere3 = geompy.addToStudy(sphere3,"Sphere3")
27 gg.createAndDisplayGO(id_sphere1)
28 gg.setDisplayMode(id_sphere1,1)
29 gg.createAndDisplayGO(id_sphere2)
30 gg.setDisplayMode(id_sphere2,1)
31 gg.createAndDisplayGO(id_sphere3)
32 gg.setDisplayMode(id_sphere3,1)