1 # Suppress Internal Wires
5 gg = salome.ImportComponentGUI("GEOM")
7 # create a vertex and a vector
8 p1 = geompy.MakeVertex(55, 65, 50)
9 p2 = geompy.MakeVertex(55, 0, 50)
10 v = geompy.MakeVector(p1, p2)
15 cylinder = geompy.MakeCylinder(p1, v, radius1, height)
18 box = geompy.MakeBoxDXDYDZ(100, 100, 100)
21 cut = geompy.MakeCut(box, cylinder)
23 # suppress all internal wires
24 result = geompy.SuppressInternalWires(cut, [])
26 # add objects in the study
27 id_cut = geompy.addToStudy(cut, "Cut")
28 id_result = geompy.addToStudy(result, "Result")
31 gg.createAndDisplayGO(id_cut)
32 gg.setDisplayMode(id_cut,1)
33 gg.createAndDisplayGO(id_result)
34 gg.setDisplayMode(id_result,1)