]> SALOME platform Git repositories - modules/shaper.git/blob - src/FeaturesPlugin/doc/examples/revolution_by_angles.py
Salome HOME
Merge branch 'master' into cgt/split
[modules/shaper.git] / src / FeaturesPlugin / doc / examples / revolution_by_angles.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 Sketch_1 = model.addSketch(Part_1_doc, model.standardPlane("XOY"))
10 SketchCircle_1 = Sketch_1.addCircle(20, 20, 10)
11 model.do()
12 Revolution_1 = model.addRevolution(Part_1_doc,
13                                    [model.selection("COMPOUND", "Sketch_1")],
14                                    model.selection("EDGE", "PartSet/OY"),
15                                    360,
16                                    0)
17 model.do()
18 model.end()