]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Adjust 'idler_plate.py' model to the new behavior
authorArtem Zhidkov <Artem.Zhidkov@opencascade.com>
Thu, 17 Sep 2020 15:20:42 +0000 (18:20 +0300)
committerArtem Zhidkov <Artem.Zhidkov@opencascade.com>
Thu, 17 Sep 2020 15:21:12 +0000 (18:21 +0300)
According to the general limitation of the selection mechanism, it is impossible to separate the coincident centers of circles/arcs if they are projected to another sketch. So, the loading of the geometric dump always selects the center of the latest edge. The 'idler_plate.py' test becomes invalid after #19990 while checking the dump to Python, because centers of arcs are taken into account now when loading the geometric dump.

test.models/idler_plate.py

index 5d4ec79933cf14871de02a012b8e243964717159..e9d92a5da3bec72ab56074554a7b5b1894c06f10 100644 (file)
@@ -155,7 +155,7 @@ SketchCircle_3 = Sketch_2.addCircle(-7.5, 18.75, 8.125)
 SketchConstraintCoincidence_48 = Sketch_2.setCoincident(SketchPoint_4.result(), SketchCircle_3.center())
 SketchArc_19 = Sketch_2.addArc(model.selection("EDGE", "Sketch_1/SketchArc_9_2"))
 SketchConstraintEqual_1 = Sketch_2.setEqual(SketchCircle_3.results()[1], SketchArc_19.results()[1])
-SketchPoint_5 = Sketch_2.addPoint(model.selection("VERTEX", "Sketch_1/SketchCircle_1_2__cc"))
+SketchPoint_5 = Sketch_2.addPoint(model.selection("VERTEX", "Sketch_1/SketchArc_3_2__cc"))
 SketchCircle_4 = Sketch_2.addCircle(0, 0, 8.75)
 SketchConstraintCoincidence_49 = Sketch_2.setCoincident(SketchPoint_5.result(), SketchCircle_4.center())
 SketchConstraintRadius_12 = Sketch_2.setRadius(SketchCircle_4.results()[1], "17.5/2")