From: mpv Date: Tue, 26 Jan 2016 14:07:32 +0000 (+0300) Subject: Make faces naming is up to this version in tests X-Git-Tag: V_2.1.2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0b6316d50461d3feb80e2d70077a268807cfd93a;p=modules%2Fshaper.git Make faces naming is up to this version in tests --- diff --git a/src/PythonAPI/examples/Platine.py b/src/PythonAPI/examples/Platine.py index 063e2c639..420a2c3a0 100644 --- a/src/PythonAPI/examples/Platine.py +++ b/src/PythonAPI/examples/Platine.py @@ -54,7 +54,7 @@ def vertical_body(): def bottom_body(): # Create XOY sketch - sketch = model.addSketch(part, "Extrusion_1_1/LateralFace_4") + sketch = model.addSketch(part, "Extrusion_1_1/LateralFace_2") # Create base polygon points = [(0, 0), (0, L), (P, L), (P, 16 + 16), (P - 20, 16 + 16), (P - 20, 16), (P, 16), (P, 0)] @@ -87,7 +87,7 @@ def bottom_body(): sketch.setCoincident(arc.endPoint(), h1.startPoint()) # Binding - left_e = sketch.addLine("Extrusion_1_1/LateralFace_4&Extrusion_1_1/ToFace_1") + left_e = sketch.addLine("Extrusion_1_1/LateralFace_2&Extrusion_1_1/ToFace_1") sketch.setCoincident(left_e.startPoint(), left.endPoint()) sketch.setCoincident(left_e.endPoint(), left.startPoint()) @@ -109,7 +109,7 @@ def bottom_body(): def body_3(): # Create XOZ sketch - sketch = model.addSketch(part, "Boolean_1_1/Modified_4") + sketch = model.addSketch(part, "Boolean_1_1/Modified_3") # Create base polygon H, L, l, r = 28, 40, 8, 12 @@ -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_1&Boolean_1_1/Modified_3") 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_7") # Create base polygon points = [(0, 0), (0, 1), (1, 0)] @@ -175,7 +175,7 @@ def body_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_3&Boolean_2_1/Modified_2") sketch.setCoincident(left_e.startPoint(), left.endPoint()) model.do() #!!!