1 from salome.shaper import model
5 partSet = model.moduleDocument()
6 Part_1 = model.addPart(partSet)
7 Part_1_doc = Part_1.document()
9 Box_1 = model.addBox(Part_1_doc, 10, 10, 10)
11 Point_2 = model.addPoint(Part_1_doc, 20, 10, 10)
13 Box_2 = model.addBox(Part_1_doc, model.selection("VERTEX", "[Box_1_1/Front][Box_1_1/Left][Box_1_1/Bottom]"), model.selection("VERTEX", "Point_1"))
15 CompSolid_1 = model.addCompSolid(Part_1_doc, [model.selection("SOLID", "Box_1_1"), model.selection("SOLID", "Box_2_1")])
17 ### Create Shared_faces
18 Shared_faces_1 = model.getSharedFaces(Part_1_doc, model.selection("COMPSOLID", "CompSolid_1_1"), "mygroup")