Salome HOME
Remove coding information from the python scripts due to tuleap issue #16806
[modules/shaper.git] / src / SketchPlugin / doc / examples / intersection.py
1 from salome.shaper import model
2
3 model.begin()
4 partSet = model.moduleDocument()
5 Part_1 = model.addPart(partSet)
6 Part_1_doc = Part_1.document()
7
8 Point_2 = model.addPoint(Part_1_doc, 10, 10, -10)
9 Point_3 = model.addPoint(Part_1_doc, 70, 70, 50)
10 Polyline_1 = model.addPolyline3D(Part_1_doc, [model.selection("VERTEX", "Point_1"), model.selection("VERTEX", "Point_2")], False)
11
12 Sketch_1 = model.addSketch(Part_1_doc, model.defaultPlane("XOY"))
13 SketchIntersectionPoint_1 = Sketch_1.addIntersectionPoint(model.selection("EDGE", "Polyline_1_1/Edge_1"), True)
14
15 model.do()
16 model.end()