6 from salome.geom import geomBuilder
7 geompy = geomBuilder.New(salome.myStudy)
8 gg = salome.ImportComponentGUI("GEOM")
10 # create a vertex and a vector
11 p1 = geompy.MakeVertex(25, 55, 0)
12 p2 = geompy.MakeVertex( 0, 0, 0)
13 v = geompy.MakeVector(p1, p2)
18 cylinder = geompy.MakeCylinder(p1, v, radius1, height)
21 sphere = geompy.MakeSphereR(40)
24 common = geompy.MakeCommon(cylinder, sphere)
26 # add objects in the study
27 id_common = geompy.addToStudy(common, "Common")
30 gg.createAndDisplayGO(id_common)
31 gg.setDisplayMode(id_common,1)