Salome HOME
Issue #2825: Do not change deflection of pre-highlighting and selection because of...
[modules/shaper.git] / src / CollectionPlugin / doc / examoles / field.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 Field_1 = model.addField(Part_1_doc, 2, "DOUBLE", 2, ["DX", "DY"], [model.selection("FACE", "Box_1_1/Left"), model.selection("FACE", "Box_1_1/Top")])
11 Field_1.addStep(0, 0, [[0.1, 0.2], [2.1, 1.7], [3.7, 1.95]])
12 Field_1.addStep(1, 31, [[0.1, 0.2], [1.1, 2.1], [0.75, 3.1]])
13 model.do()
14 model.end()