]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Adjust Model test cases according to new behavior of Tangent constraint.
authorazv <azv@opencascade.com>
Mon, 20 Mar 2017 12:52:04 +0000 (15:52 +0300)
committerazv <azv@opencascade.com>
Mon, 20 Mar 2017 12:52:04 +0000 (15:52 +0300)
src/FeaturesPlugin/Test/Test1942.py
test.models/angle30.py
test.models/bearing_puller.py
test.models/case24.py
test.models/ecran.py
test.models/wheel_rim.py

index 110f62e7e559ed93e58daa9a13d8cafc1207cc4e..006c614c1abc0c38a4f4dd98f9537948115ae5cd 100644 (file)
@@ -66,6 +66,7 @@ SketchConstraintCoincidence_12 = Sketch_1.setCoincident(SketchLine_2.startPoint(
 SketchConstraintCoincidence_12.setName("SketchConstraintCoincidence_14")
 SketchConstraintRadius_1 = Sketch_1.setRadius(SketchArc_1.results()[1], 30)
 SketchArc_2 = Sketch_1.addArc(-8.152231059872202, 11.25015706261054, -38.72043789437247, 5.632510332222703, -20.37351638704503, 39.82660556161157, True)
+SketchConstraintRadius_2 = Sketch_1.setRadius(SketchArc_2.results()[1], 30)
 SketchConstraintCoincidence_13 = Sketch_1.setCoincident(SketchArc_2.startPoint(), SketchLine_2.endPoint())
 SketchConstraintCoincidence_13.setName("SketchConstraintCoincidence_15")
 SketchConstraintTangent_3 = Sketch_1.setTangent(SketchArc_2.results()[1], SketchLine_2.result())
index d91bec07c6b68ca8a5327a7964100e5e5b113a74..2bfbcb9f29adcf4289be8fcdd1d8a32d32b5726b 100644 (file)
@@ -754,8 +754,8 @@ model.testNbResults(Boolean_7, 1)
 model.testNbSubResults(Boolean_7, [0])
 model.testNbSubShapes(Boolean_7, GeomAPI_Shape.SOLID, [1])
 model.testNbSubShapes(Boolean_7, GeomAPI_Shape.FACE, [49])
-model.testNbSubShapes(Boolean_7, GeomAPI_Shape.EDGE, [271])
-model.testNbSubShapes(Boolean_7, GeomAPI_Shape.VERTEX, [542])
-model.testResultsVolumes(Boolean_7, [157000.318686960934428498148918152])
+model.testNbSubShapes(Boolean_7, GeomAPI_Shape.EDGE, [263])
+model.testNbSubShapes(Boolean_7, GeomAPI_Shape.VERTEX, [526])
+model.testResultsVolumes(Boolean_7, [157000.328896829247241839766502380])
 
 assert(model.checkPythonDump)
index 05c20e2314abd32f831236b7cd4dc95c0cf406ac..99b36f6b41cb7a7e8615f93dc7bbd49253d8493f 100644 (file)
@@ -14,6 +14,7 @@ model.addParameter(Part_1_doc, "Radius", "50", "Radius of the body")
 model.addParameter(Part_1_doc, "Width", "25", "Width of body arms")
 Sketch_1 = model.addSketch(Part_1_doc, model.defaultPlane("XOZ"))
 SketchLine_1 = Sketch_1.addLine(50, 14.61148285474187, 50, 0)
+SketchConstraintLength_1 = Sketch_1.setLength(SketchLine_1.result(), 14.61148285474187)
 SketchLine_2 = Sketch_1.addLine(50, 0, 6, 0)
 SketchConstraintCoincidence_1 = Sketch_1.setCoincident(SketchLine_1.endPoint(), SketchLine_2.startPoint())
 SketchLine_3 = Sketch_1.addLine(7, 25, 16.13599978860571, 25)
@@ -341,8 +342,6 @@ SketchConstraintCoincidence_60 = Sketch_4.setCoincident(SketchArc_13.startPoint(
 SketchConstraintCoincidence_60.setName("SketchConstraintCoincidence_48")
 SketchConstraintCoincidence_61 = Sketch_4.setCoincident(SketchArc_13.endPoint(), SketchArc_12.endPoint())
 SketchConstraintCoincidence_61.setName("SketchConstraintCoincidence_49")
-SketchConstraintCoincidence_62 = Sketch_4.setCoincident(SketchArc_13.center(), SketchLine_32.result())
-SketchConstraintCoincidence_62.setName("SketchConstraintCoincidence_50")
 SketchConstraintMirror_1 = Sketch_4.addMirror(SketchLine_40.result(), [SketchArc_13.results()[1], SketchArc_12.results()[1]])
 [SketchArc_14, SketchArc_15] = SketchConstraintMirror_1.mirrored()
 SketchArc_15.setName("SketchArc_6")
@@ -582,12 +581,10 @@ SketchArc_22 = Sketch_6.addArc(3.457737973711348, 3.788069295318559e-014, 6.25,
 SketchArc_22.setName("SketchArc_4")
 SketchArc_22.result().setName("SketchArc_4")
 SketchArc_22.results()[1].setName("SketchArc_4_2")
-SketchConstraintCoincidence_117 = Sketch_6.setCoincident(SketchArc_22.startPoint(), SketchLine_56.startPoint())
-SketchConstraintCoincidence_117.setName("SketchConstraintCoincidence_48")
-SketchConstraintCoincidence_118 = Sketch_6.setCoincident(SketchArc_22.endPoint(), SketchArc_21.endPoint())
-SketchConstraintCoincidence_118.setName("SketchConstraintCoincidence_49")
-SketchConstraintCoincidence_119 = Sketch_6.setCoincident(SketchArc_22.center(), SketchLine_53.result())
-SketchConstraintCoincidence_119.setName("SketchConstraintCoincidence_50")
+SketchConstraintCoincidence_127 = Sketch_6.setCoincident(SketchArc_22.startPoint(), SketchLine_56.startPoint())
+SketchConstraintCoincidence_127.setName("SketchConstraintCoincidence_48")
+SketchConstraintCoincidence_128 = Sketch_6.setCoincident(SketchArc_22.endPoint(), SketchArc_21.endPoint())
+SketchConstraintCoincidence_128.setName("SketchConstraintCoincidence_49")
 SketchConstraintMirror_3 = Sketch_6.addMirror(SketchLine_61.result(), [SketchArc_22.results()[1], SketchArc_21.results()[1]])
 [SketchArc_23, SketchArc_24] = SketchConstraintMirror_3.mirrored()
 SketchArc_24.setName("SketchArc_6")
@@ -831,8 +828,6 @@ SketchConstraintCoincidence_194 = Sketch_8.setCoincident(SketchArc_31.startPoint
 SketchConstraintCoincidence_194.setName("SketchConstraintCoincidence_48")
 SketchConstraintCoincidence_195 = Sketch_8.setCoincident(SketchArc_31.endPoint(), SketchArc_30.endPoint())
 SketchConstraintCoincidence_195.setName("SketchConstraintCoincidence_49")
-SketchConstraintCoincidence_196 = Sketch_8.setCoincident(SketchArc_31.center(), SketchLine_74.result())
-SketchConstraintCoincidence_196.setName("SketchConstraintCoincidence_50")
 SketchConstraintMirror_5 = Sketch_8.addMirror(SketchLine_82.result(), [SketchArc_31.results()[1], SketchArc_30.results()[1]])
 [SketchArc_32, SketchArc_33] = SketchConstraintMirror_5.mirrored()
 SketchArc_33.setName("SketchArc_6")
@@ -1074,7 +1069,7 @@ model.testNbSubShapes(Part_1, GeomAPI_Shape.SOLID, [1])
 model.testNbSubShapes(Part_1, GeomAPI_Shape.FACE, [52])
 model.testNbSubShapes(Part_1, GeomAPI_Shape.EDGE, [338])
 model.testNbSubShapes(Part_1, GeomAPI_Shape.VERTEX, [676])
-model.testResultsVolumes(Part_1, [48835.415011945384321734309196472])
+model.testResultsVolumes(Part_1, [48835.437112214101944118738174438])
 
 model.testNbResults(Translation_4, 3)
 model.testNbSubResults(Translation_4, [0, 0, 0])
index 1d46a84040abc4bca9c3cd277d918f57bb047171..65afa9b008a1e7354b69624e1aaa22f4b83b417c 100644 (file)
@@ -278,8 +278,6 @@ SketchConstraintRadius_6 = Sketch_5.setRadius(SketchArc_6.results()[1], 8)
 SketchConstraintRadius_6.setName("SketchConstraintRadius_7")
 SketchConstraintDistance_14 = Sketch_5.setDistance(SketchLine_33.endPoint(), SketchLine_30.result(), 20)
 SketchConstraintDistance_14.setName("SketchConstraintDistance_17")
-SketchConstraintCoincidence_58 = Sketch_5.setCoincident(SketchLine_34.endPoint(), SketchLine_34.result())
-SketchConstraintCoincidence_58.setName("SketchConstraintCoincidence_65")
 SketchConstraintCoincidence_59 = Sketch_5.setCoincident(SketchLine_34.endPoint(), SketchLine_37.startPoint())
 SketchConstraintCoincidence_59.setName("SketchConstraintCoincidence_66")
 SketchConstraintDistance_15 = Sketch_5.setDistance(SketchLine_37.startPoint(), SketchLine_30.result(), "DBody")
@@ -388,8 +386,6 @@ SketchConstraintCoincidence_81 = Sketch_6.setCoincident(SketchLine_38.startPoint
 SketchConstraintCoincidence_81.setName("SketchConstraintCoincidence_153")
 SketchConstraintCoincidence_82 = Sketch_6.setCoincident(SketchLine_40.endPoint(), SketchLine_39.startPoint())
 SketchConstraintCoincidence_82.setName("SketchConstraintCoincidence_154")
-SketchConstraintCoincidence_83 = Sketch_6.setCoincident(SketchLine_41.startPoint(), SketchLine_41.result())
-SketchConstraintCoincidence_83.setName("SketchConstraintCoincidence_155")
 SketchConstraintCoincidence_84 = Sketch_6.setCoincident(SketchLine_41.startPoint(), SketchLine_39.endPoint())
 SketchConstraintCoincidence_84.setName("SketchConstraintCoincidence_156")
 model.do()
@@ -416,7 +412,7 @@ SketchLine_54.result().setName("SketchLine_55")
 SketchLine_54.setAuxiliary(True)
 SketchConstraintCoincidence_86 = Sketch_7.setCoincident(SketchLine_52.endPoint(), SketchLine_54.startPoint())
 SketchConstraintCoincidence_86.setName("SketchConstraintCoincidence_96")
-SketchLine_55 = Sketch_7.addLine(model.selection("EDGE", "RevolutionFuse_3_1/Modfied_17&RevolutionFuse_3_1/Modfied_10"))
+SketchLine_55 = Sketch_7.addLine(model.selection("EDGE", "RevolutionFuse_3_1/Modfied_13&RevolutionFuse_3_1/Modfied_10"))
 SketchLine_55.setName("SketchLine_56")
 SketchLine_55.result().setName("SketchLine_56")
 SketchConstraintCoincidence_87 = Sketch_7.setCoincident(SketchLine_54.endPoint(), SketchLine_55.result())
@@ -631,7 +627,7 @@ Sketch_10 = model.addSketch(Part_1_doc, model.selection("FACE", "PartSet/XOY"))
 SketchLine_77 = Sketch_10.addLine(64, 20, 89, 20)
 SketchLine_77.setName("SketchLine_76")
 SketchLine_77.result().setName("SketchLine_76")
-SketchPoint_4 = Sketch_10.addPoint(model.selection("VERTEX", "RevolutionFuse_2_1/Modfied_11&RevolutionFuse_2_1/Modfied_13&RevolutionFuse_3_1/Modfied_13&RevolutionFuse_3_1/Modfied_2"))
+SketchPoint_4 = Sketch_10.addPoint(model.selection("VERTEX", "RevolutionFuse_2_1/Modfied_11&RevolutionFuse_2_1/Modfied_13&RevolutionFuse_3_1/Modfied_15&RevolutionFuse_3_1/Modfied_4"))
 SketchConstraintCoincidence_122 = Sketch_10.setCoincident(SketchLine_77.startPoint(), SketchPoint_4.result())
 SketchConstraintCoincidence_122.setName("SketchConstraintCoincidence_120")
 SketchPoint_5 = Sketch_10.addPoint(model.selection("VERTEX", "Sketch_1/Vertex-SketchLine_1s-SketchLine_8e-SketchLine_4e"))
@@ -640,10 +636,10 @@ SketchConstraintCoincidence_123.setName("SketchConstraintCoincidence_121")
 SketchLine_78 = Sketch_10.addLine(64, -20, 89, -20)
 SketchLine_78.setName("SketchLine_77")
 SketchLine_78.result().setName("SketchLine_77")
-SketchPoint_6 = Sketch_10.addPoint(model.selection("VERTEX", "RevolutionFuse_1_1/Modfied_4&RevolutionFuse_1_1/Modfied_9&RevolutionFuse_3_1/Modfied_15&RevolutionFuse_3_1/Modfied_6"))
+SketchPoint_6 = Sketch_10.addPoint(model.selection("VERTEX", "RevolutionFuse_1_1/Modfied_4&RevolutionFuse_1_1/Modfied_9&RevolutionFuse_3_1/Modfied_17&RevolutionFuse_3_1/Modfied_8"))
 SketchConstraintCoincidence_124 = Sketch_10.setCoincident(SketchLine_78.startPoint(), SketchPoint_6.result())
 SketchConstraintCoincidence_124.setName("SketchConstraintCoincidence_122")
-SketchPoint_7 = Sketch_10.addPoint(model.selection("VERTEX", "ExtrusionFuse_2_1/Modfied_2&RevolutionFuse_1_1/Modfied_4&ExtrusionFuse_2_1/Modfied_1&RevolutionFuse_3_1/Modfied_15"))
+SketchPoint_7 = Sketch_10.addPoint(model.selection("VERTEX", "ExtrusionFuse_2_1/Modfied_2&RevolutionFuse_1_1/Modfied_4&ExtrusionFuse_2_1/Modfied_1&RevolutionFuse_3_1/Modfied_17"))
 SketchConstraintCoincidence_125 = Sketch_10.setCoincident(SketchLine_78.endPoint(), SketchPoint_7.result())
 SketchConstraintCoincidence_125.setName("SketchConstraintCoincidence_123")
 SketchArc_10 = Sketch_10.addArc(89.00000104846708, 1.669244441022778e-015, 89, -20, 89, 20, False)
@@ -666,7 +662,7 @@ SketchConstraintCoincidence_129 = Sketch_10.setCoincident(SketchArc_11.startPoin
 SketchConstraintCoincidence_129.setName("SketchConstraintCoincidence_127")
 SketchConstraintTangent_19 = Sketch_10.setTangent(SketchArc_11.results()[1], SketchLine_78.result())
 SketchConstraintTangent_19.setName("SketchConstraintTangent_24")
-SketchPoint_8 = Sketch_10.addPoint(model.selection("VERTEX", "ExtrusionCut_2_1/Modfied_5&RevolutionFuse_3_1/Modfied_7&RevolutionFuse_3_1/Modfied_6&RevolutionFuse_3_1/Modfied_24&RevolutionFuse_3_1/Modfied_5"))
+SketchPoint_8 = Sketch_10.addPoint(model.selection("VERTEX", "ExtrusionCut_2_1/Modfied_9&RevolutionFuse_3_1/Modfied_7&RevolutionFuse_3_1/Modfied_8&RevolutionFuse_3_1/Modfied_24&RevolutionFuse_3_1/Modfied_9"))
 SketchConstraintCoincidence_130 = Sketch_10.setCoincident(SketchArc_11.endPoint(), SketchPoint_8.result())
 SketchConstraintCoincidence_130.setName("SketchConstraintCoincidence_128")
 SketchArc_12 = Sketch_10.addArc(64.00001789135865, 23.01137360115889, 64, 20, 61.15622559702543, 22.02080994708722, True)
@@ -677,7 +673,7 @@ SketchConstraintCoincidence_131 = Sketch_10.setCoincident(SketchArc_12.startPoin
 SketchConstraintCoincidence_131.setName("SketchConstraintCoincidence_129")
 SketchConstraintTangent_20 = Sketch_10.setTangent(SketchArc_12.results()[1], SketchLine_77.result())
 SketchConstraintTangent_20.setName("SketchConstraintTangent_25")
-SketchPoint_9 = Sketch_10.addPoint(model.selection("VERTEX", "ExtrusionCut_2_1/Modfied_5&RevolutionFuse_3_1/Modfied_3&RevolutionFuse_3_1/Modfied_2&RevolutionFuse_3_1/Modfied_24&RevolutionFuse_3_1/Modfied_1"))
+SketchPoint_9 = Sketch_10.addPoint(model.selection("VERTEX", "ExtrusionCut_2_1/Modfied_9&RevolutionFuse_3_1/Modfied_3&RevolutionFuse_3_1/Modfied_4&RevolutionFuse_3_1/Modfied_24&RevolutionFuse_3_1/Modfied_5"))
 SketchConstraintCoincidence_132 = Sketch_10.setCoincident(SketchArc_12.endPoint(), SketchPoint_9.result())
 SketchConstraintCoincidence_132.setName("SketchConstraintCoincidence_130")
 SketchLine_79 = Sketch_10.addLine(61.15622559702543, 22.02080994708722, 59.81204392543111, 22.0208099470871)
@@ -775,8 +771,8 @@ model.testNbResults(ExtrusionCut_4, 1)
 model.testNbSubResults(ExtrusionCut_4, [0])
 model.testNbSubShapes(ExtrusionCut_4, GeomAPI_Shape.SOLID, [1])
 model.testNbSubShapes(ExtrusionCut_4, GeomAPI_Shape.FACE, [81])
-model.testNbSubShapes(ExtrusionCut_4, GeomAPI_Shape.EDGE, [418])
-model.testNbSubShapes(ExtrusionCut_4, GeomAPI_Shape.VERTEX, [836])
-model.testResultsVolumes(ExtrusionCut_4, [502902.415176195616368204355239868])
+model.testNbSubShapes(ExtrusionCut_4, GeomAPI_Shape.EDGE, [406])
+model.testNbSubShapes(ExtrusionCut_4, GeomAPI_Shape.VERTEX, [812])
+model.testResultsVolumes(ExtrusionCut_4, [502902.431481667619664222002029419])
 
 assert(model.checkPythonDump())
index 1c2fdc5196e8424a971b3f25ca367490148fefe7..6e09d950ef5ba3244a27276f96ce0883008e63ff 100644 (file)
@@ -8,7 +8,7 @@ Part_1 = model.addPart(partSet)
 Part_1_doc = Part_1.document()
 Sketch_1 = model.addSketch(Part_1_doc, model.defaultPlane("YOZ"))
 SketchLine_1 = Sketch_1.addLine(55.1, 10.3, 55.1, 0.3)
-SketchLine_2 = Sketch_1.addLine(55.1, 0.3, 2.300000098190561, 0.3)
+SketchLine_2 = Sketch_1.addLine(55.1, 0.3, 2.3, 0.3)
 SketchLine_2.setName("SketchLine_10")
 SketchLine_2.result().setName("SketchLine_10")
 SketchLine_3 = Sketch_1.addLine(55.1, 0.3, 0.3, 0.3)
@@ -16,10 +16,10 @@ SketchLine_3.setName("SketchLine_2")
 SketchLine_3.result().setName("SketchLine_2")
 SketchLine_3.setAuxiliary(True)
 SketchConstraintCoincidence_1 = Sketch_1.setCoincident(SketchLine_1.endPoint(), SketchLine_3.startPoint())
-SketchLine_4 = Sketch_1.addLine(0.3, 2.299999958617008, 0.3, 10.3)
+SketchLine_4 = Sketch_1.addLine(0.3, 2.3, 0.3, 10.3)
 SketchLine_4.setName("SketchLine_11")
 SketchLine_4.result().setName("SketchLine_11")
-SketchLine_5 = Sketch_1.addLine(2.299981065494142, -1.390467145968888e-034, 55.4, -3.349267313974575e-033)
+SketchLine_5 = Sketch_1.addLine(2.3, 0, 55.4, 0)
 SketchLine_5.setName("SketchLine_12")
 SketchLine_5.result().setName("SketchLine_12")
 SketchLine_6 = Sketch_1.addLine(0.3, 0.3, 0.3, 10.3)
@@ -27,7 +27,7 @@ SketchLine_6.setName("SketchLine_3")
 SketchLine_6.result().setName("SketchLine_3")
 SketchLine_6.setAuxiliary(True)
 SketchConstraintCoincidence_2 = Sketch_1.setCoincident(SketchLine_3.endPoint(), SketchLine_6.startPoint())
-SketchLine_7 = Sketch_1.addLine(0, 10.3, 0, 2.300013086422291)
+SketchLine_7 = Sketch_1.addLine(0, 10.3, 0, 2.3)
 SketchLine_7.setName("SketchLine_13")
 SketchLine_7.result().setName("SketchLine_13")
 SketchLine_8 = Sketch_1.addLine(0.3, 10.3, 0, 10.3)
@@ -38,17 +38,17 @@ SketchLine_9 = Sketch_1.addLine(model.selection("EDGE", "PartSet/OZ"))
 SketchLine_9.setName("SketchLine_5")
 SketchLine_9.result().setName("SketchLine_5")
 SketchConstraintCoincidence_4 = Sketch_1.setCoincident(SketchLine_8.endPoint(), SketchLine_9.result())
-SketchLine_10 = Sketch_1.addLine(0, 10.3, 0, -3.349267313974575e-033)
+SketchLine_10 = Sketch_1.addLine(0, 10.3, 0, 0)
 SketchLine_10.setName("SketchLine_6")
 SketchLine_10.result().setName("SketchLine_6")
 SketchLine_10.setAuxiliary(True)
 SketchConstraintCoincidence_5 = Sketch_1.setCoincident(SketchLine_8.endPoint(), SketchLine_10.startPoint())
-SketchLine_11 = Sketch_1.addLine(0, -3.349267313974575e-033, 55.4, -3.349267313974575e-033)
+SketchLine_11 = Sketch_1.addLine(0, 0, 55.4, 0)
 SketchLine_11.setName("SketchLine_7")
 SketchLine_11.result().setName("SketchLine_7")
 SketchLine_11.setAuxiliary(True)
 SketchConstraintCoincidence_6 = Sketch_1.setCoincident(SketchLine_10.endPoint(), SketchLine_11.startPoint())
-SketchLine_12 = Sketch_1.addLine(55.4, -3.349267313974575e-033, 55.4, 10.3)
+SketchLine_12 = Sketch_1.addLine(55.4, 0, 55.4, 10.3)
 SketchLine_12.setName("SketchLine_8")
 SketchLine_12.result().setName("SketchLine_8")
 SketchConstraintCoincidence_7 = Sketch_1.setCoincident(SketchLine_11.endPoint(), SketchLine_12.startPoint())
@@ -72,7 +72,7 @@ SketchConstraintLength_3 = Sketch_1.setLength(SketchLine_11.result(), 55.4)
 SketchConstraintLength_3.setName("SketchConstraintLength_5")
 SketchConstraintVertical_4 = Sketch_1.setVertical(SketchLine_10.result())
 SketchConstraintLength_4 = Sketch_1.setLength(SketchLine_8.result(), 0.3)
-SketchArc_1 = Sketch_1.addArc(2.3, 2.3, 0.3, 2.299999958617008, 2.300000098190561, 0.3, False)
+SketchArc_1 = Sketch_1.addArc(2.3, 2.3, 0.3, 2.3, 2.3, 0.3, False)
 SketchConstraintCoincidence_11 = Sketch_1.setCoincident(SketchArc_1.startPoint(), SketchLine_4.startPoint())
 SketchConstraintCoincidence_12 = Sketch_1.setCoincident(SketchArc_1.endPoint(), SketchLine_2.endPoint())
 SketchConstraintTangent_1 = Sketch_1.setTangent(SketchArc_1.results()[1], SketchLine_2.result())
@@ -81,7 +81,7 @@ SketchConstraintCoincidence_13 = Sketch_1.setCoincident(SketchLine_3.startPoint(
 SketchConstraintCoincidence_14 = Sketch_1.setCoincident(SketchLine_6.endPoint(), SketchLine_4.endPoint())
 SketchConstraintCoincidence_15 = Sketch_1.setCoincident(SketchLine_2.endPoint(), SketchLine_3.result())
 SketchConstraintCoincidence_16 = Sketch_1.setCoincident(SketchLine_4.startPoint(), SketchLine_6.result())
-SketchArc_2 = Sketch_1.addArc(2.3, 2.3, 0, 2.300013086422291, 2.299981065494142, -1.390467145968888e-034, False)
+SketchArc_2 = Sketch_1.addArc(2.3, 2.3, 0, 2.3, 2.3, 0, False)
 SketchConstraintCoincidence_17 = Sketch_1.setCoincident(SketchArc_2.startPoint(), SketchLine_7.endPoint())
 SketchConstraintCoincidence_18 = Sketch_1.setCoincident(SketchArc_2.endPoint(), SketchLine_5.startPoint())
 SketchConstraintTangent_3 = Sketch_1.setTangent(SketchArc_2.results()[1], SketchLine_5.result())
@@ -97,12 +97,12 @@ model.do()
 Extrusion_1 = model.addExtrusion(Part_1_doc, [model.selection("WIRE", "Sketch_1/Wire-SketchLine_1f-SketchLine_10f-SketchLine_11f-SketchLine_12f-SketchLine_13f-SketchLine_4f-SketchLine_8f-SketchLine_9f-SketchArc_1_2r-SketchArc_2_2f")], model.selection(), "307/2.", "307/2.")
 Extrusion_1.setName("Profil")
 Sketch_2 = model.addSketch(Part_1_doc, model.selection("FACE", "Extrusion_1_1/Generated_Face_7"))
-SketchLine_14 = Sketch_2.addLine(149.5, -2.299981065494, 153.5, -2.299981065494142)
+SketchLine_14 = Sketch_2.addLine(149.5, -2.3, 153.5, -2.3)
 SketchPoint_1 = Sketch_2.addPoint(model.selection("VERTEX", "Extrusion_1_1/Generated_Face_7&Extrusion_1_1/Generated_Face_6&Extrusion_1_1/To_Face_1"))
 SketchConstraintCoincidence_24 = Sketch_2.setCoincident(SketchLine_14.endPoint(), SketchPoint_1.result())
-SketchLine_15 = Sketch_2.addLine(153.5, -2.299981065494142, 153.5, 7.700018934505839)
-SketchLine_16 = Sketch_2.addLine(153.5, 7.700018934505839, 149.5, 7.700018934505839)
-SketchLine_17 = Sketch_2.addLine(149.5, 7.700018934505839, 149.5, -2.299981065494)
+SketchLine_15 = Sketch_2.addLine(153.5, -2.3, 153.5, 7.7)
+SketchLine_16 = Sketch_2.addLine(153.5, 7.7, 149.5, 7.7)
+SketchLine_17 = Sketch_2.addLine(149.5, 7.7, 149.5, -2.3)
 SketchConstraintCoincidence_25 = Sketch_2.setCoincident(SketchLine_17.endPoint(), SketchLine_14.startPoint())
 SketchConstraintCoincidence_26 = Sketch_2.setCoincident(SketchLine_14.endPoint(), SketchLine_15.startPoint())
 SketchConstraintCoincidence_27 = Sketch_2.setCoincident(SketchLine_15.endPoint(), SketchLine_16.startPoint())
@@ -111,10 +111,10 @@ SketchConstraintHorizontal_5 = Sketch_2.setHorizontal(SketchLine_14.result())
 SketchConstraintVertical_5 = Sketch_2.setVertical(SketchLine_15.result())
 SketchConstraintHorizontal_6 = Sketch_2.setHorizontal(SketchLine_16.result())
 SketchConstraintVertical_6 = Sketch_2.setVertical(SketchLine_17.result())
-SketchLine_18 = Sketch_2.addLine(-149.5, -2.299981065494142, -153.5, -2.299981065494142)
-SketchLine_19 = Sketch_2.addLine(-153.5, -2.299981065494142, -153.5, 7.700018934505858)
-SketchLine_20 = Sketch_2.addLine(-153.5, 7.700018934505858, -149.5, 7.700018934505858)
-SketchLine_21 = Sketch_2.addLine(-149.5, 7.700018934505858, -149.5, -2.299981065494142)
+SketchLine_18 = Sketch_2.addLine(-149.5, -2.3142, -153.5, -2.3142)
+SketchLine_19 = Sketch_2.addLine(-153.5, -2.3142, -153.5, 7.7)
+SketchLine_20 = Sketch_2.addLine(-153.5, 7.7, -149.5, 7.7)
+SketchLine_21 = Sketch_2.addLine(-149.5, 7.7, -149.5, -2.3142)
 SketchConstraintCoincidence_29 = Sketch_2.setCoincident(SketchLine_21.endPoint(), SketchLine_18.startPoint())
 SketchConstraintCoincidence_30 = Sketch_2.setCoincident(SketchLine_18.endPoint(), SketchLine_19.startPoint())
 SketchConstraintCoincidence_31 = Sketch_2.setCoincident(SketchLine_19.endPoint(), SketchLine_20.startPoint())
@@ -137,7 +137,7 @@ model.do()
 ExtrusionCut_1 = model.addExtrusionCut(Part_1_doc, [model.selection("COMPOUND", "Sketch_2")], model.selection(), model.selection("FACE", "Extrusion_1_1/Generated_Face_4"), 0, model.selection(), 0, [model.selection("SOLID", "Extrusion_1_1")])
 ExtrusionCut_1.setName("Decoupe_Angle")
 Sketch_3 = model.addSketch(Part_1_doc, model.selection("FACE", "Extrusion_1_1/Generated_Face_8"))
-SketchLine_22 = Sketch_3.addLine(153.5, -10.3, 153.5, -8.300000000000011)
+SketchLine_22 = Sketch_3.addLine(153.5, -10.3, 153.5, -8.3)
 SketchLine_22.setName("SketchLine_29")
 SketchLine_22.result().setName("SketchLine_29")
 SketchPoint_3 = Sketch_3.addPoint(model.selection("VERTEX", "Extrusion_1_1/Generated_Face_9&ExtrusionCut_1_1/Modfied_1&Extrusion_1_1/Generated_Face_8"))
@@ -150,7 +150,7 @@ SketchLine_23.setName("SketchLine_30")
 SketchLine_23.result().setName("SketchLine_30")
 SketchConstraintCoincidence_36 = Sketch_3.setCoincident(SketchLine_22.endPoint(), SketchLine_23.result())
 SketchConstraintCoincidence_36.setName("SketchConstraintCoincidence_41")
-SketchLine_24 = Sketch_3.addLine(153.5, -8.300000000000011, 151.5, -10.3)
+SketchLine_24 = Sketch_3.addLine(153.5, -8.3, 151.5, -10.3)
 SketchLine_24.setName("SketchLine_31")
 SketchLine_24.result().setName("SketchLine_31")
 SketchConstraintCoincidence_37 = Sketch_3.setCoincident(SketchLine_22.endPoint(), SketchLine_24.startPoint())
@@ -183,21 +183,21 @@ Sketch_3.setName("Sketch_4")
 Sketch_3.result().setName("Sketch_4")
 ExtrusionCut_2 = model.addExtrusionCut(Part_1_doc, [model.selection("COMPOUND", "Sketch_4")], model.selection(), 0, 10, [model.selection("SOLID", "ExtrusionCut_1_1")])
 ExtrusionCut_2.setName("Chamfrein_1")
-Sketch_4 = model.addSketch(Part_1_doc, model.selection("FACE", "ExtrusionCut_1_1/Modfied_6"))
-SketchLine_30 = Sketch_4.addLine(-149.5, 10.3, -149.5, 8.300000000000003)
+Sketch_4 = model.addSketch(Part_1_doc, model.selection("FACE", "ExtrusionCut_1_1/Modfied_7"))
+SketchLine_30 = Sketch_4.addLine(-149.5, 10.3, -149.5, 8.3)
 SketchLine_30.setName("SketchLine_35")
 SketchLine_30.result().setName("SketchLine_35")
-SketchPoint_4 = Sketch_4.addPoint(model.selection("VERTEX", "ExtrusionCut_1_1/Modfied_10&ExtrusionCut_1_1/Modfied_6&ExtrusionCut_1_1/Modfied_5"))
+SketchPoint_4 = Sketch_4.addPoint(model.selection("VERTEX", "ExtrusionCut_1_1/Modfied_11&ExtrusionCut_1_1/Modfied_7&ExtrusionCut_1_1/Modfied_6"))
 SketchPoint_4.setName("SketchPoint_6")
 SketchPoint_4.result().setName("SketchPoint_6")
 SketchConstraintCoincidence_42 = Sketch_4.setCoincident(SketchLine_30.startPoint(), SketchPoint_4.result())
 SketchConstraintCoincidence_42.setName("SketchConstraintCoincidence_43")
-SketchLine_31 = Sketch_4.addLine(model.selection("EDGE", "ExtrusionCut_1_1/Modfied_10&ExtrusionCut_1_1/Modfied_6"))
+SketchLine_31 = Sketch_4.addLine(model.selection("EDGE", "ExtrusionCut_1_1/Modfied_11&ExtrusionCut_1_1/Modfied_7"))
 SketchLine_31.setName("SketchLine_36")
 SketchLine_31.result().setName("SketchLine_36")
 SketchConstraintCoincidence_43 = Sketch_4.setCoincident(SketchLine_30.endPoint(), SketchLine_31.result())
 SketchConstraintCoincidence_43.setName("SketchConstraintCoincidence_48")
-SketchLine_32 = Sketch_4.addLine(-149.5, 8.300000000000003, -147.5, 10.3)
+SketchLine_32 = Sketch_4.addLine(-149.5, 8.3, -147.5, 10.3)
 SketchLine_32.setName("SketchLine_37")
 SketchLine_32.result().setName("SketchLine_37")
 SketchConstraintCoincidence_44 = Sketch_4.setCoincident(SketchLine_30.endPoint(), SketchLine_32.startPoint())
@@ -267,15 +267,15 @@ SketchConstraintCoincidence_54.setName("SketchConstraintCoincidence_59")
 model.do()
 Sketch_4.setName("Sketch_5")
 Sketch_4.result().setName("Sketch_5")
-ExtrusionCut_3 = model.addExtrusionCut(Part_1_doc, [model.selection("COMPOUND", "Sketch_5")], model.selection(), model.selection("FACE", "ExtrusionCut_1_1/Modfied_4"), 0, model.selection(), 0, [model.selection("SOLID", "ExtrusionCut_2_1")])
-Sketch_5 = model.addSketch(Part_1_doc, model.selection("FACE", "ExtrusionCut_1_1/Modfied_8"))
+ExtrusionCut_3 = model.addExtrusionCut(Part_1_doc, [model.selection("COMPOUND", "Sketch_5")], model.selection(), model.selection("FACE", "ExtrusionCut_1_1/Modfied_5"), 0, model.selection(), 0, [model.selection("SOLID", "ExtrusionCut_2_1")])
+Sketch_5 = model.addSketch(Part_1_doc, model.selection("FACE", "ExtrusionCut_1_1/Modfied_9"))
 SketchLine_40 = Sketch_5.addLine(152.2999838762584, -21.04999053274691, 153.5, -21.04999053274714)
 SketchLine_40.setName("SketchLine_58")
 SketchLine_40.result().setName("SketchLine_58")
 SketchLine_41 = Sketch_5.addLine(152.2999838292651, -45.04999053274704, 153.5, -45.04999053274702)
 SketchLine_41.setName("SketchLine_57")
 SketchLine_41.result().setName("SketchLine_57")
-SketchLine_42 = Sketch_5.addLine(model.selection("EDGE", "ExtrusionCut_2_1/Modfied_2&ExtrusionCut_1_1/Modfied_8"))
+SketchLine_42 = Sketch_5.addLine(model.selection("EDGE", "ExtrusionCut_2_1/Modfied_2&ExtrusionCut_1_1/Modfied_9"))
 SketchLine_42.setName("SketchLine_46")
 SketchLine_42.result().setName("SketchLine_46")
 SketchLine_43 = Sketch_5.addLine(150.8, -45.04999053274702, 153.5, -45.04999053274702)
@@ -287,7 +287,7 @@ SketchConstraintCoincidence_55.setName("SketchConstraintCoincidence_60")
 SketchLine_44 = Sketch_5.addLine(153.5, -45.04999053274702, 153.5, -37.04999053274702)
 SketchLine_44.setName("SketchLine_47")
 SketchLine_44.result().setName("SketchLine_47")
-SketchLine_45 = Sketch_5.addLine(150.8000000000001, -14.54997391609652, 150.8000000000001, -19.54999029833178)
+SketchLine_45 = Sketch_5.addLine(150.8, -14.54997391609652, 150.8, -19.54999029833178)
 SketchLine_45.setName("SketchLine_61")
 SketchLine_45.result().setName("SketchLine_61")
 SketchLine_46 = Sketch_5.addLine(153.5, -13.04999053274714, 152.2999838654776, -13.04999053274697)
@@ -314,10 +314,10 @@ SketchConstraintVertical_10 = Sketch_5.setVertical(SketchLine_47.result())
 SketchLine_49 = Sketch_5.addLine(153.5, -37.04999053274702, 152.2999989299055, -37.04999053274738)
 SketchLine_49.setName("SketchLine_62")
 SketchLine_49.result().setName("SketchLine_62")
-SketchLine_50 = Sketch_5.addLine(150.8, -38.54997391988981, 150.8000000000001, -43.54998998548124)
+SketchLine_50 = Sketch_5.addLine(150.8, -38.54997391988981, 150.8, -43.54998998548124)
 SketchLine_50.setName("SketchLine_63")
 SketchLine_50.result().setName("SketchLine_63")
-SketchLine_51 = Sketch_5.addLine(150.7999999999999, -21.04999053274714, 153.5, -21.04999053274714)
+SketchLine_51 = Sketch_5.addLine(150.8, -21.04999053274714, 153.5, -21.04999053274714)
 SketchLine_51.setName("SketchLine_50")
 SketchLine_51.result().setName("SketchLine_50")
 SketchLine_51.setAuxiliary(True)
@@ -326,13 +326,13 @@ SketchConstraintCoincidence_60.setName("SketchConstraintCoincidence_65")
 SketchLine_52 = Sketch_5.addLine(153.5, -21.04999053274714, 153.5, -13.04999053274714)
 SketchLine_52.setName("SketchLine_51")
 SketchLine_52.result().setName("SketchLine_51")
-SketchLine_53 = Sketch_5.addLine(150.7999999999999, -13.04999053274714, 150.7999999999999, -21.04999053274714)
+SketchLine_53 = Sketch_5.addLine(150.8, -13.04999053274714, 150.8, -21.04999053274714)
 SketchLine_53.setAuxiliary(True)
 SketchConstraintCoincidence_61 = Sketch_5.setCoincident(SketchLine_53.endPoint(), SketchLine_51.startPoint())
 SketchConstraintCoincidence_61.setName("SketchConstraintCoincidence_66")
 SketchConstraintCoincidence_62 = Sketch_5.setCoincident(SketchLine_51.endPoint(), SketchLine_52.startPoint())
 SketchConstraintCoincidence_62.setName("SketchConstraintCoincidence_67")
-SketchLine_54 = Sketch_5.addLine(153.5, -13.04999053274714, 150.7999999999999, -13.04999053274714)
+SketchLine_54 = Sketch_5.addLine(153.5, -13.04999053274714, 150.8, -13.04999053274714)
 SketchLine_54.setName("SketchLine_52")
 SketchLine_54.result().setName("SketchLine_52")
 SketchLine_54.setAuxiliary(True)
@@ -361,16 +361,16 @@ SketchLine_55.result().setName("SketchLine_54")
 SketchLine_55.setAuxiliary(True)
 SketchConstraintCoincidence_66 = Sketch_5.setCoincident(SketchPoint_5.coordinates(), SketchLine_55.startPoint())
 SketchConstraintCoincidence_66.setName("SketchConstraintCoincidence_71")
-SketchLine_56 = Sketch_5.addLine(model.selection("EDGE", "ExtrusionCut_2_1/Modfied_3&ExtrusionCut_1_1/Modfied_8"))
+SketchLine_56 = Sketch_5.addLine(model.selection("EDGE", "ExtrusionCut_2_1/Modfied_3&ExtrusionCut_1_1/Modfied_9"))
 SketchLine_56.setName("SketchLine_55")
 SketchLine_56.result().setName("SketchLine_55")
 SketchConstraintCoincidence_67 = Sketch_5.setCoincident(SketchLine_55.endPoint(), SketchLine_56.result())
 SketchConstraintCoincidence_67.setName("SketchConstraintCoincidence_72")
 SketchConstraintHorizontal_15 = Sketch_5.setHorizontal(SketchLine_55.result())
-SketchConstraintDistance_8 = Sketch_5.setDistance(SketchLine_48.result(), SketchPoint_5.coordinates(), 8.199999999999999)
+SketchConstraintDistance_8 = Sketch_5.setDistance(SketchLine_48.result(), SketchPoint_5.coordinates(), 8.2)
 SketchConstraintDistance_9 = Sketch_5.setDistance(SketchLine_51.result(), SketchPoint_5.coordinates(), 7.8)
-SketchArc_3 = Sketch_5.addArc(152.3, -43.54999053274682, 150.8000000000001, -43.54998998548124, 152.2999838292651, -45.04999053274704, False)
-SketchLine_57 = Sketch_5.addLine(150.8, -37.04999053274702, 150.8000000000001, -43.54998998548124)
+SketchArc_3 = Sketch_5.addArc(152.3, -43.54999053274682, 150.8, -43.54998998548124, 152.2999838292651, -45.04999053274704, False)
+SketchLine_57 = Sketch_5.addLine(150.8, -37.04999053274702, 150.8, -43.54998998548124)
 SketchLine_57.setName("SketchLine_56")
 SketchLine_57.result().setName("SketchLine_56")
 SketchLine_57.setAuxiliary(True)
@@ -388,8 +388,8 @@ SketchConstraintCoincidence_72 = Sketch_5.setCoincident(SketchLine_57.endPoint()
 SketchConstraintCoincidence_72.setName("SketchConstraintCoincidence_77")
 SketchConstraintCoincidence_73 = Sketch_5.setCoincident(SketchLine_41.startPoint(), SketchLine_43.result())
 SketchConstraintCoincidence_73.setName("SketchConstraintCoincidence_78")
-SketchArc_4 = Sketch_5.addArc(152.3, -19.54999053274696, 150.8000000000001, -19.54999029833178, 152.2999838762584, -21.04999053274691, False)
-SketchLine_58 = Sketch_5.addLine(150.7999999999999, -13.04999053274714, 150.8000000000001, -19.54999029833178)
+SketchArc_4 = Sketch_5.addArc(152.3, -19.54999053274696, 150.8, -19.54999029833178, 152.2999838762584, -21.04999053274691, False)
+SketchLine_58 = Sketch_5.addLine(150.8, -13.04999053274714, 150.8, -19.54999029833178)
 SketchLine_58.setName("SketchLine_59")
 SketchLine_58.result().setName("SketchLine_59")
 SketchLine_58.setAuxiliary(True)
@@ -407,7 +407,7 @@ SketchConstraintCoincidence_78 = Sketch_5.setCoincident(SketchLine_40.startPoint
 SketchConstraintCoincidence_78.setName("SketchConstraintCoincidence_83")
 SketchConstraintCoincidence_79 = Sketch_5.setCoincident(SketchLine_58.endPoint(), SketchLine_53.result())
 SketchConstraintCoincidence_79.setName("SketchConstraintCoincidence_84")
-SketchArc_5 = Sketch_5.addArc(152.2999999999999, -14.54999053274707, 152.2999838654776, -13.04999053274697, 150.8000000000001, -14.54997391609652, False)
+SketchArc_5 = Sketch_5.addArc(152.3, -14.54999053274707, 152.2999838654776, -13.04999053274697, 150.8, -14.54997391609652, False)
 SketchConstraintCoincidence_80 = Sketch_5.setCoincident(SketchArc_5.startPoint(), SketchLine_46.endPoint())
 SketchConstraintCoincidence_80.setName("SketchConstraintCoincidence_85")
 SketchConstraintCoincidence_81 = Sketch_5.setCoincident(SketchArc_5.endPoint(), SketchLine_45.startPoint())
@@ -485,25 +485,25 @@ SketchLine_68.result().setName("SketchLine_73")
 model.do()
 Sketch_5.setName("Sketch_6")
 Sketch_5.result().setName("Sketch_6")
-ExtrusionCut_4 = model.addExtrusionCut(Part_1_doc, [model.selection("FACE", "Sketch_6/Face-SketchArc_9_2f-SketchArc_10_2f-SketchLine_73r-SketchLine_74r-SketchLine_75r-SketchLine_76r"), model.selection("WIRE", "Sketch_6/Wire-SketchLine_58f-SketchLine_61f-SketchLine_60f-SketchLine_51f-SketchArc_4_2f-SketchArc_5_2f"), model.selection("WIRE", "Sketch_6/Wire-SketchLine_57f-SketchLine_47f-SketchLine_62f-SketchLine_63f-SketchArc_3_2f-SketchArc_6_2f")], model.selection(), 0, 10, [model.selection("SOLID", "ExtrusionCut_3_1")])
+ExtrusionCut_4 = model.addExtrusionCut(Part_1_doc, [model.selection("WIRE", "Sketch_6/Wire-SketchArc_9_2f-SketchArc_10_2f-SketchLine_73r-SketchLine_74r-SketchLine_75r-SketchLine_76r"), model.selection("WIRE", "Sketch_6/Wire-SketchLine_58f-SketchLine_61f-SketchLine_60f-SketchLine_51f-SketchArc_4_2f-SketchArc_5_2f"), model.selection("WIRE", "Sketch_6/Wire-SketchLine_57f-SketchLine_47f-SketchLine_62f-SketchLine_63f-SketchArc_3_2f-SketchArc_6_2f")], model.selection(), 0, 10, [model.selection("SOLID", "ExtrusionCut_3_1")])
 Sketch_6 = model.addSketch(Part_1_doc, model.selection("FACE", "ExtrusionCut_4_1/Modfied_1"))
-SketchArc_11 = Sketch_6.addArc(44.88999999999999, -23.54999053274703, 43.88999999999999, -23.54999053274703, 44.88999999999999, -22.54999053274703, False)
-SketchArc_12 = Sketch_6.addArc(44.88999999999999, -13.54999053274703, 44.88999999999999, -14.54999053274703, 43.88999999999999, -13.54999053274703, False)
+SketchArc_11 = Sketch_6.addArc(44.89, -23.54999053274703, 43.89, -23.54999053274703, 44.89, -22.54999053274703, False)
+SketchArc_12 = Sketch_6.addArc(44.89, -13.54999053274703, 44.89, -14.54999053274703, 43.89, -13.54999053274703, False)
 SketchArc_13 = Sketch_6.addArc(5.89, -13.54999053274703, 6.89, -13.54999053274703, 5.89, -14.54999053274703, False)
 SketchArc_13.setName("SketchArc_14")
 SketchArc_13.result().setName("SketchArc_14")
 SketchArc_13.results()[1].setName("SketchArc_14_2")
-SketchLine_76 = Sketch_6.addLine(6.890000000000002, -23.54999053274703, 43.88999999999999, -23.54999053274703)
+SketchLine_76 = Sketch_6.addLine(6.89, -23.54999053274703, 43.89, -23.54999053274703)
 SketchLine_76.setName("SketchLine_81")
 SketchLine_76.result().setName("SketchLine_81")
 SketchConstraintCoincidence_92 = Sketch_6.setCoincident(SketchArc_11.startPoint(), SketchLine_76.endPoint())
 SketchConstraintCoincidence_92.setName("SketchConstraintCoincidence_98")
-SketchLine_77 = Sketch_6.addLine(6.89, -13.54999053274703, 43.88999999999999, -13.54999053274703)
+SketchLine_77 = Sketch_6.addLine(6.89, -13.54999053274703, 43.89, -13.54999053274703)
 SketchLine_77.setName("SketchLine_82")
 SketchLine_77.result().setName("SketchLine_82")
 SketchConstraintCoincidence_93 = Sketch_6.setCoincident(SketchArc_13.startPoint(), SketchLine_77.startPoint())
 SketchConstraintCoincidence_93.setName("SketchConstraintCoincidence_99")
-SketchLine_78 = Sketch_6.addLine(44.88999999999999, -22.54999053274703, 44.88999999999999, -14.54999053274703)
+SketchLine_78 = Sketch_6.addLine(44.89, -22.54999053274703, 44.89, -14.54999053274703)
 SketchLine_78.setName("SketchLine_83")
 SketchLine_78.result().setName("SketchLine_83")
 SketchConstraintCoincidence_94 = Sketch_6.setCoincident(SketchArc_12.startPoint(), SketchLine_78.endPoint())
@@ -547,7 +547,7 @@ SketchLine_81 = Sketch_6.addLine(model.selection("EDGE", "Sketch_6/Edge-SketchLi
 SketchLine_81.setName("SketchLine_86")
 SketchLine_81.result().setName("SketchLine_86")
 SketchConstraintDistance_13 = Sketch_6.setDistance(SketchLine_76.endPoint(), SketchLine_81.result(), 5.3)
-SketchArc_14 = Sketch_6.addArc(5.890000000000002, -23.54999053274703, 5.89, -22.54999053274703, 6.890000000000002, -23.54999053274703, False)
+SketchArc_14 = Sketch_6.addArc(5.89, -23.54999053274703, 5.89, -22.54999053274703, 6.89, -23.54999053274703, False)
 SketchArc_14.setName("SketchArc_15")
 SketchArc_14.result().setName("SketchArc_15")
 SketchArc_14.results()[1].setName("SketchArc_15_2")
@@ -689,7 +689,7 @@ SketchArc_24.results()[1].setName("SketchArc_25_2")
 SketchArc_23.setName("SketchArc_24")
 SketchArc_23.result().setName("SketchArc_24")
 SketchArc_23.results()[1].setName("SketchArc_24_2")
-SketchPoint_9 = Sketch_6.addPoint(1.460819920296274e-014, -49.84999053274704)
+SketchPoint_9 = Sketch_6.addPoint(0, -49.84999053274704)
 SketchPoint_9.setName("SketchPoint_11")
 SketchPoint_9.result().setName("SketchPoint_11")
 SketchConstraintCoincidence_112 = Sketch_6.setCoincident(SketchPoint_9.coordinates(), SketchLine_80.result())
@@ -821,12 +821,12 @@ SketchArc_35.results()[1].setName("SketchArc_36_2")
 model.do()
 Sketch_6.setName("Sketch_7")
 Sketch_6.result().setName("Sketch_7")
-ExtrusionCut_5 = model.addExtrusionCut(Part_1_doc, [model.selection("WIRE", "Sketch_7/Wire-SketchArc_20_2f-SketchArc_21_2f-SketchArc_22_2f-SketchArc_23_2f-SketchLine_91r-SketchLine_92f-SketchLine_93r-SketchLine_94f"), model.selection("WIRE", "Sketch_7/Wire-SketchArc_52_2f-SketchArc_53_2f-SketchArc_56_2f-SketchArc_57_2f-SketchLine_114r-SketchLine_115f-SketchLine_116r-SketchLine_121f"), model.selection("FACE", "Sketch_7/Face-SketchArc_44_2f-SketchArc_45_2f-SketchArc_48_2f-SketchArc_49_2f-SketchLine_107f-SketchLine_113f-SketchLine_117r-SketchLine_123r"), model.selection("WIRE", "Sketch_7/Wire-SketchArc_16_2f-SketchArc_17_2f-SketchArc_18_2f-SketchArc_19_2f-SketchLine_87f-SketchLine_88f-SketchLine_89r-SketchLine_90r"), model.selection("WIRE", "Sketch_7/Wire-SketchArc_11_2f-SketchArc_12_2f-SketchArc_14_2f-SketchLine_81f-SketchLine_82r-SketchLine_83f-SketchLine_84r-SketchArc_15_2f"), model.selection("WIRE", "Sketch_7/Wire-SketchArc_36_2f-SketchArc_38_2f-SketchArc_40_2f-SketchArc_41_2f-SketchLine_108r-SketchLine_119r-SketchLine_127f-SketchLine_129f"), model.selection("FACE", "Sketch_7/Face-SketchArc_37_2f-SketchArc_39_2f-SketchArc_42_2f-SketchArc_43_2f-SketchLine_118r-SketchLine_120f-SketchLine_122r-SketchLine_130f"), model.selection("WIRE", "Sketch_7/Wire-SketchArc_24_2f-SketchArc_25_2f-SketchArc_26_2f-SketchArc_27_2f-SketchLine_98f-SketchLine_100r-SketchLine_101f-SketchLine_103r"), model.selection("WIRE", "Sketch_7/Wire-SketchArc_30_2f-SketchArc_31_2f-SketchArc_34_2f-SketchArc_35_2f-SketchLine_95f-SketchLine_96r-SketchLine_97f-SketchLine_105r"), model.selection("FACE", "Sketch_7/Face-SketchArc_46_2f-SketchArc_47_2f-SketchArc_50_2f-SketchArc_51_2f-SketchLine_124f-SketchLine_125r-SketchLine_126f-SketchLine_128r"), model.selection("WIRE", "Sketch_7/Wire-SketchArc_54_2f-SketchArc_55_2f-SketchArc_58_2f-SketchArc_59_2f-SketchLine_109f-SketchLine_110r-SketchLine_111r-SketchLine_112f"), model.selection("WIRE", "Sketch_7/Wire-SketchArc_28_2f-SketchArc_29_2f-SketchArc_32_2f-SketchArc_33_2f-SketchLine_99r-SketchLine_102f-SketchLine_104f-SketchLine_106r")], model.selection(), 0, 10, [model.selection("SOLID", "ExtrusionCut_4_1")])
+ExtrusionCut_5 = model.addExtrusionCut(Part_1_doc, [model.selection("WIRE", "Sketch_7/Wire-SketchArc_20_2f-SketchArc_21_2f-SketchArc_22_2f-SketchArc_23_2f-SketchLine_91r-SketchLine_92f-SketchLine_93r-SketchLine_94f"), model.selection("WIRE", "Sketch_7/Wire-SketchArc_52_2f-SketchArc_53_2f-SketchArc_56_2f-SketchArc_57_2f-SketchLine_114r-SketchLine_115f-SketchLine_116r-SketchLine_121f"), model.selection("WIRE", "Sketch_7/Wire-SketchArc_44_2f-SketchArc_45_2f-SketchArc_48_2f-SketchArc_49_2f-SketchLine_107f-SketchLine_113f-SketchLine_117r-SketchLine_123r"), model.selection("WIRE", "Sketch_7/Wire-SketchArc_16_2f-SketchArc_17_2f-SketchArc_18_2f-SketchArc_19_2f-SketchLine_87f-SketchLine_88f-SketchLine_89r-SketchLine_90r"), model.selection("WIRE", "Sketch_7/Wire-SketchArc_11_2f-SketchArc_12_2f-SketchArc_14_2f-SketchLine_81f-SketchLine_82r-SketchLine_83f-SketchLine_84r-SketchArc_15_2f"), model.selection("WIRE", "Sketch_7/Wire-SketchArc_36_2f-SketchArc_38_2f-SketchArc_40_2f-SketchArc_41_2f-SketchLine_108r-SketchLine_119r-SketchLine_127f-SketchLine_129f"), model.selection("WIRE", "Sketch_7/Wire-SketchArc_37_2f-SketchArc_39_2f-SketchArc_42_2f-SketchArc_43_2f-SketchLine_118r-SketchLine_120f-SketchLine_122r-SketchLine_130f"), model.selection("WIRE", "Sketch_7/Wire-SketchArc_24_2f-SketchArc_25_2f-SketchArc_26_2f-SketchArc_27_2f-SketchLine_98f-SketchLine_100r-SketchLine_101f-SketchLine_103r"), model.selection("WIRE", "Sketch_7/Wire-SketchArc_30_2f-SketchArc_31_2f-SketchArc_34_2f-SketchArc_35_2f-SketchLine_95f-SketchLine_96r-SketchLine_97f-SketchLine_105r"), model.selection("WIRE", "Sketch_7/Wire-SketchArc_46_2f-SketchArc_47_2f-SketchArc_50_2f-SketchArc_51_2f-SketchLine_124f-SketchLine_125r-SketchLine_126f-SketchLine_128r"), model.selection("WIRE", "Sketch_7/Wire-SketchArc_54_2f-SketchArc_55_2f-SketchArc_58_2f-SketchArc_59_2f-SketchLine_109f-SketchLine_110r-SketchLine_111r-SketchLine_112f"), model.selection("WIRE", "Sketch_7/Wire-SketchArc_28_2f-SketchArc_29_2f-SketchArc_32_2f-SketchArc_33_2f-SketchLine_99r-SketchLine_102f-SketchLine_104f-SketchLine_106r")], model.selection(), 0, 10, [model.selection("SOLID", "ExtrusionCut_4_1")])
 Sketch_7 = model.addSketch(Part_1_doc, model.selection("FACE", "ExtrusionCut_5_1/Modfied_1"))
 SketchLine_126 = Sketch_7.addLine(-153.5, -37.049990532747, -152.3000099350335, -37.0499905327475)
 SketchLine_126.setName("SketchLine_135")
 SketchLine_126.result().setName("SketchLine_135")
-SketchLine_127 = Sketch_7.addLine(-150.7999999999999, -38.54999290880026, -150.8, -43.54999111476925)
+SketchLine_127 = Sketch_7.addLine(-150.8, -38.54999290880026, -150.8, -43.54999111476925)
 SketchLine_127.setName("SketchLine_138")
 SketchLine_127.result().setName("SketchLine_138")
 SketchPoint_10 = Sketch_7.addPoint(model.selection("VERTEX", "Sketch_6/Vertex-SketchLine_67s-SketchLine_68e-SketchLine_69e"))
@@ -869,11 +869,11 @@ SketchPoint_11.setName("SketchPoint_13")
 SketchPoint_11.result().setName("SketchPoint_13")
 SketchConstraintCoincidence_118 = Sketch_7.setCoincident(SketchLine_132.endPoint(), SketchPoint_11.result())
 SketchConstraintCoincidence_118.setName("SketchConstraintCoincidence_125")
-SketchArc_59 = Sketch_7.addArc(-152.3, -38.54999053274712, -150.7999999999999, -38.54999290880026, -152.3000099350335, -37.0499905327475, False)
+SketchArc_59 = Sketch_7.addArc(-152.3, -38.54999053274712, -150.8, -38.54999290880026, -152.3000099350335, -37.0499905327475, False)
 SketchArc_59.setName("SketchArc_60")
 SketchArc_59.result().setName("SketchArc_60")
 SketchArc_59.results()[1].setName("SketchArc_60_2")
-SketchLine_133 = Sketch_7.addLine(-150.7999999999999, -38.54999290880026, -150.8, -45.049990532747)
+SketchLine_133 = Sketch_7.addLine(-150.8, -38.54999290880026, -150.8, -45.049990532747)
 SketchLine_133.setName("SketchLine_136")
 SketchLine_133.result().setName("SketchLine_136")
 SketchLine_133.setAuxiliary(True)
@@ -916,15 +916,15 @@ Sketch_7.setName("Sketch_8")
 Sketch_7.result().setName("Sketch_8")
 ExtrusionCut_6 = model.addExtrusionCut(Part_1_doc, [model.selection("COMPOUND", "Sketch_8")], model.selection(), 0, 10, [model.selection("SOLID", "ExtrusionCut_5_1")])
 Sketch_8 = model.addSketch(Part_1_doc, model.selection("FACE", "ExtrusionCut_6_1/Modfied_2"))
-SketchLine_134 = Sketch_8.addLine(0.8499999999999983, 50.75, -0.8500000000000015, 50.75)
+SketchLine_134 = Sketch_8.addLine(0.85, 50.75, -0.85, 50.75)
 SketchLine_134.setName("SketchLine_139")
 SketchLine_134.result().setName("SketchLine_139")
-SketchLine_135 = Sketch_8.addLine(-0.8500000000000015, 47.45, 0.8499999999999983, 47.45)
+SketchLine_135 = Sketch_8.addLine(-0.85, 47.45, 0.85, 47.45)
 SketchLine_135.setName("SketchLine_141")
 SketchLine_135.result().setName("SketchLine_141")
 SketchConstraintHorizontal_20 = Sketch_8.setHorizontal(SketchLine_134.result())
 SketchConstraintHorizontal_21 = Sketch_8.setHorizontal(SketchLine_135.result())
-SketchArc_61 = Sketch_8.addArc(0.8499999999999999, 49.1, 0.8499999999999983, 47.45, 0.8499999999999983, 50.75, False)
+SketchArc_61 = Sketch_8.addArc(0.85, 49.1, 0.85, 47.45, 0.85, 50.75, False)
 SketchArc_61.setName("SketchArc_63")
 SketchArc_61.result().setName("SketchArc_63")
 SketchArc_61.results()[1].setName("SketchArc_63_2")
@@ -933,7 +933,7 @@ SketchConstraintCoincidence_131.setName("SketchConstraintCoincidence_146")
 SketchConstraintCoincidence_132 = Sketch_8.setCoincident(SketchArc_61.startPoint(), SketchLine_135.endPoint())
 SketchConstraintCoincidence_132.setName("SketchConstraintCoincidence_148")
 SketchConstraintDistance_17 = Sketch_8.setDistance(SketchLine_134.result(), SketchLine_135.endPoint(), 3.3)
-SketchLine_136 = Sketch_8.addLine(0.8499999999999983, 50.75, 0.8499999999999983, 47.45)
+SketchLine_136 = Sketch_8.addLine(0.85, 50.75, 0.85, 47.45)
 SketchLine_136.setName("SketchLine_140")
 SketchLine_136.result().setName("SketchLine_140")
 SketchLine_136.setAuxiliary(True)
@@ -945,7 +945,7 @@ SketchConstraintCoincidence_135 = Sketch_8.setCoincident(SketchLine_135.endPoint
 SketchConstraintCoincidence_135.setName("SketchConstraintCoincidence_140")
 SketchConstraintCoincidence_136 = Sketch_8.setCoincident(SketchArc_61.startPoint(), SketchLine_136.endPoint())
 SketchConstraintCoincidence_136.setName("SketchConstraintCoincidence_141")
-SketchLine_137 = Sketch_8.addLine(-0.8500000000000015, 50.75, -0.8500000000000015, 47.45)
+SketchLine_137 = Sketch_8.addLine(-0.85, 50.75, -0.85, 47.45)
 SketchLine_137.setName("SketchLine_142")
 SketchLine_137.result().setName("SketchLine_142")
 SketchLine_137.setAuxiliary(True)
@@ -958,7 +958,7 @@ SketchConstraintLength_10 = Sketch_8.setLength(SketchLine_134.result(), 1.7)
 SketchConstraintLength_10.setName("SketchConstraintLength_11")
 SketchConstraintVertical_17 = Sketch_8.setVertical(SketchLine_137.result())
 SketchConstraintVertical_18 = Sketch_8.setVertical(SketchLine_136.result())
-SketchLine_138 = Sketch_8.addLine(0.8499999999999983, 50.75, -0.8500000000000015, 47.45)
+SketchLine_138 = Sketch_8.addLine(0.85, 50.75, -0.85, 47.45)
 SketchLine_138.setName("SketchLine_143")
 SketchLine_138.result().setName("SketchLine_143")
 SketchLine_138.setAuxiliary(True)
@@ -985,7 +985,7 @@ SketchLine_139.setName("SketchLine_144")
 SketchLine_139.result().setName("SketchLine_144")
 SketchConstraintCoincidence_145 = Sketch_8.setCoincident(SketchPoint_12.coordinates(), SketchLine_139.result())
 SketchConstraintCoincidence_145.setName("SketchConstraintCoincidence_157")
-SketchArc_62 = Sketch_8.addArc(-0.8500000000000004, 49.1, -0.8500000000000015, 50.75, -0.8500000000000015, 47.45, False)
+SketchArc_62 = Sketch_8.addArc(-0.85, 49.1, -0.85, 50.75, -0.85, 47.45, False)
 SketchConstraintCoincidence_146 = Sketch_8.setCoincident(SketchLine_135.startPoint(), SketchArc_62.endPoint())
 SketchConstraintCoincidence_146.setName("SketchConstraintCoincidence_149")
 SketchConstraintCoincidence_147 = Sketch_8.setCoincident(SketchLine_137.endPoint(), SketchArc_62.endPoint())
@@ -1048,8 +1048,8 @@ model.testNbResults(ExtrusionCut_7, 1)
 model.testNbSubResults(ExtrusionCut_7, [0])
 model.testNbSubShapes(ExtrusionCut_7, GeomAPI_Shape.SOLID, [1])
 model.testNbSubShapes(ExtrusionCut_7, GeomAPI_Shape.FACE, [156])
-model.testNbSubShapes(ExtrusionCut_7, GeomAPI_Shape.EDGE, [920])
-model.testNbSubShapes(ExtrusionCut_7, GeomAPI_Shape.VERTEX, [1840])
-model.testResultsVolumes(ExtrusionCut_7, [5345.689532925511230132542550564])
+model.testNbSubShapes(ExtrusionCut_7, GeomAPI_Shape.EDGE, [916])
+model.testNbSubShapes(ExtrusionCut_7, GeomAPI_Shape.VERTEX, [1832])
+model.testResultsVolumes(ExtrusionCut_7, [5345.689484659372283203992992640])
 
 assert(model.checkPythonDump)
index 2c456ef9f19c55480b96ddb969fbb0cf58e3723d..bb803520362bfb4fbcce27c3110f16c6621dff4a 100644 (file)
@@ -59,6 +59,16 @@ SketchConstraintCoincidence_18 = Sketch_1.setCoincident(SketchLine_7.startPoint(
 SketchConstraintCoincidence_18.setName("SketchConstraintCoincidence_20")
 SketchConstraintTangent_2 = Sketch_1.setTangent(SketchArc_2.results()[1], SketchArc_3.results()[1])
 SketchConstraintTangent_3 = Sketch_1.setTangent(SketchArc_3.results()[1], SketchArc_2.results()[1])
+model.do()
+
+# check overconstraint message appears
+assert Sketch_1.solverError().value() != "", "FAILED: Sketch should report over-constrained situation"
+# remove duplicated Tangent constraint
+Part_1_doc.removeFeature(SketchConstraintTangent_3.feature())
+model.do()
+assert Sketch_1.solverError().value() == "", "FAILED: Sketch should NOT report over-constrained situation"
+
+# continue creating model
 SketchLine_8 = Sketch_1.addLine(16.63997893808557, 190, 16.63997893808557, 184)
 SketchConstraintCoincidence_19 = Sketch_1.setCoincident(SketchLine_2.startPoint(), SketchLine_8.startPoint())
 SketchConstraintCoincidence_19.setName("SketchConstraintCoincidence_21")
@@ -234,6 +244,6 @@ model.testNbSubShapes(Boolean_1, GeomAPI_Shape.SOLID, [1])
 model.testNbSubShapes(Boolean_1, GeomAPI_Shape.FACE, [35])
 model.testNbSubShapes(Boolean_1, GeomAPI_Shape.EDGE, [162])
 model.testNbSubShapes(Boolean_1, GeomAPI_Shape.VERTEX, [324])
-model.testResultsVolumes(Boolean_1, [2053931.831648423336446285247802734])
+model.testResultsVolumes(Boolean_1, [2053931.555419394280761480331420898])
 
 assert(model.checkPythonDump())