5 gg = salome.ImportComponentGUI("GEOM")
7 # create a vertex and a vector
8 p1 = geompy.MakeVertex(25, 55, 0)
9 p2 = geompy.MakeVertex( 0, 0, 0)
10 v = geompy.MakeVector(p1, p2)
15 cylinder = geompy.MakeCylinder(p1, v, radius1, height)
18 sphere = geompy.MakeSphereR(40)
21 section = geompy.MakeSection(cylinder, sphere)
23 # add objects in the study
24 id_section = geompy.addToStudy(section, "Section")
27 gg.createAndDisplayGO(id_section)
28 gg.setDisplayMode(id_section,1)