1 # Suppress Internal Wires
4 salome.salome_init_without_session()
6 from salome.geom import geomBuilder
7 geompy = geomBuilder.New()
8 gg = salome.ImportComponentGUI("GEOM")
10 # create a vertex and a vector
11 p1 = geompy.MakeVertex(55, 65, 50)
12 p2 = geompy.MakeVertex(55, 0, 50)
13 v = geompy.MakeVector(p1, p2)
18 cylinder = geompy.MakeCylinder(p1, v, radius1, height)
21 box = geompy.MakeBoxDXDYDZ(100, 100, 100)
24 cut = geompy.MakeCut(box, cylinder)
26 # suppress all internal wires
27 result = geompy.SuppressInternalWires(cut, [])
29 # add objects in the study
30 id_cut = geompy.addToStudy(cut, "Cut")
31 id_result = geompy.addToStudy(result, "Result")
34 gg.createAndDisplayGO(id_cut)
35 gg.setDisplayMode(id_cut,1)
36 gg.createAndDisplayGO(id_result)
37 gg.setDisplayMode(id_result,1)