Salome HOME
Issue #3222: 1d fillet
[modules/shaper.git] / src / FeaturesPlugin / doc / examples / fillet1d_wire.py
1 from salome.shaper import model
2
3 model.begin()
4 partSet = model.moduleDocument()
5
6 ### Create Part
7 Part_1 = model.addPart(partSet)
8 Part_1_doc = Part_1.document()
9
10 ### Create Box
11 Box_1 = model.addBox(Part_1_doc, 10, 10, 10)
12
13 ### Create Wire
14 Wire_1_objects = [model.selection("EDGE", "[Box_1_1/Left][Box_1_1/Bottom]"),
15                   model.selection("EDGE", "[Box_1_1/Front][Box_1_1/Left]"),
16                   model.selection("EDGE", "[Box_1_1/Front][Box_1_1/Top]"),
17                   model.selection("EDGE", "[Box_1_1/Front][Box_1_1/Right]")]
18 Wire_1 = model.addWire(Part_1_doc, Wire_1_objects, False)
19
20 ### Create Fillet1D
21 Fillet1D_1 = model.addFillet(Part_1_doc, [model.selection("WIRE", "Wire_1_1")], 3)
22
23 model.end()