]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Update naming in Platine example
authorazv <azv@opencascade.com>
Wed, 17 Feb 2016 12:04:26 +0000 (15:04 +0300)
committerazv <azv@opencascade.com>
Wed, 17 Feb 2016 12:04:26 +0000 (15:04 +0300)
src/PythonAPI/examples/Platine.py

index 063e2c63949ed44e662990a215f38f276949fcf9..4d136f95226f66083da3f336d8fb4242656b9658 100644 (file)
@@ -147,7 +147,7 @@ def body_3():
     sketch.setRadius(arc.result(), r)
 
     # Binding
-    bottom_e = sketch.addLine("Boolean_1_1/Modified_1&Boolean_1_1/Modified_4")
+    bottom_e = sketch.addLine("Boolean_1_1/Modified_5&Boolean_1_1/Modified_8")
     sketch.setCoincident(bottom_e.result(), bottom.startPoint())
     sketch.setCoincident(bottom_e.startPoint(), bottom.endPoint())
 
@@ -162,7 +162,7 @@ def body_3():
 
 def body_4():
     # Create XOZ 2nd sketch
-    sketch = model.addSketch(part, "Boolean_2_1/Modified_8")
+    sketch = model.addSketch(part, "Boolean_2_1/Modified_4")
 
     # Create base polygon
     points = [(0, 0), (0, 1), (1, 0)]
@@ -171,11 +171,11 @@ def body_4():
     left, diagonal, bottom = sketch.addPolygon(*geom_points)
 
     # Binding
-    bottom_e = sketch.addLine("Boolean_2_1/Modified_8&Boolean_2_1/Modified_7")
+    bottom_e = sketch.addLine("Boolean_2_1/Modified_3&Boolean_2_1/Modified_4")
     sketch.setCoincident(bottom_e.endPoint(), bottom.startPoint())
     sketch.setCoincident(bottom_e.startPoint(), left.startPoint())
 
-    left_e = sketch.addLine("Boolean_2_1/Modified_4&Boolean_2_1/Modified_2")
+    left_e = sketch.addLine("Boolean_2_1/Modified_6&Boolean_2_1/Modified_8")
     sketch.setCoincident(left_e.startPoint(), left.endPoint())
 
     model.do()  #!!!