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 section = geompy.MakeSection(cylinder, sphere)
26 # add objects in the study
27 id_section = geompy.addToStudy(section, "Section")
30 gg.createAndDisplayGO(id_section)
31 gg.setDisplayMode(id_section,1)