Salome HOME
Renaming Fill in Split : IHM and HDF
[modules/shaper.git] / src / FeaturesPlugin / doc / examples / fill.py
1 # -*- coding: utf-8 -*-
2
3 from salome.shaper import model
4
5 model.begin()
6 partSet = model.moduleDocument()
7 Part_1 = model.addPart(partSet)
8 Part_1_doc = Part_1.document()
9 Box_1 = model.addBox(Part_1_doc, 10, 10, 10)
10 Cylinder_1 = model.addCylinder(Part_1_doc,
11                                model.selection("VERTEX", "PartSet/Origin"),
12                                model.selection("EDGE", "PartSet/OZ"), 5, 10)
13 Fill_1 = model.addFill(Part_1_doc,
14                        [model.selection("SOLID", "Cylinder_1_1")],
15                        [model.selection("SOLID", "Box_1_1")])
16 model.do()
17 model.end()