]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Update "plug" model to avoid instability
authorazv <azv@opencascade.com>
Fri, 29 Dec 2017 06:54:15 +0000 (09:54 +0300)
committerazv <azv@opencascade.com>
Fri, 29 Dec 2017 06:54:15 +0000 (09:54 +0300)
test.models/plug.py

index 5c7c8fab297b4853679fdca02771437b1364c136..a1d9f63b79cbf203b072fccc208dc5cb6f2a3328 100644 (file)
@@ -383,20 +383,24 @@ model.testResultsVolumes(RevolutionCut_1, [28297.246041844206047244369983673])
 RevolutionCut_2 = model.addRevolutionCut(Part_1_doc, [], model.selection("EDGE", "PartSet/OX"), 360, 0, [model.selection("SOLID", "RevolutionCut_1_1")])
 Sketch_5 = model.addSketch(Part_1_doc, model.standardPlane("XOY"))
 SketchLine_61 = Sketch_5.addLine(63.5, 10.5, 64, 10.5)
+SketchLine_61.setAuxiliary(True)
 SketchProjection_15 = Sketch_5.addProjection(model.selection("EDGE", "Sketch_1/Edge-SketchLine_7"), False)
 SketchLine_62 = SketchProjection_15.createdFeature()
 SketchConstraintCoincidence_58 = Sketch_5.setCoincident(SketchLine_61.startPoint(), SketchLine_62.result())
 SketchConstraintCoincidence_59 = Sketch_5.setCoincident(SketchAPI_Line(SketchLine_62).endPoint(), SketchLine_61.endPoint())
-SketchLine_63 = Sketch_5.addLine(64, 10.5, 64, 11)
-SketchConstraintCoincidence_60 = Sketch_5.setCoincident(SketchLine_61.endPoint(), SketchLine_63.startPoint())
-SketchProjection_16 = Sketch_5.addProjection(model.selection("EDGE", "Sketch_1/Edge-SketchLine_8"), False)
-SketchLine_64 = SketchProjection_16.createdFeature()
-SketchConstraintCoincidence_61 = Sketch_5.setCoincident(SketchLine_63.endPoint(), SketchLine_64.result())
-SketchLine_65 = Sketch_5.addLine(64, 11, 63.5, 10.5)
-SketchConstraintCoincidence_62 = Sketch_5.setCoincident(SketchLine_63.endPoint(), SketchLine_65.startPoint())
-SketchConstraintCoincidence_62 = Sketch_5.setCoincident(SketchLine_65.endPoint(), SketchLine_61.startPoint())
-SketchConstraintEqual_2 = Sketch_5.setEqual(SketchLine_61.result(), SketchLine_63.result())
+SketchLine_63 = Sketch_5.addLine(64.25, 10.25, 64.25, 11.25)
+SketchLine_64 = Sketch_5.addLine(64.25, 11.25, 63.25, 10.25)
+SketchConstraintCoincidence_60 = Sketch_5.setCoincident(SketchLine_63.endPoint(), SketchLine_64.startPoint())
 SketchConstraintLength_3 = Sketch_5.setLength(SketchLine_61.result(), "Chamfer")
+SketchConstraintCoincidence_61 = Sketch_5.setCoincident(SketchLine_61.startPoint(), SketchLine_64.result())
+SketchLine_65 = Sketch_5.addLine(63.25, 10.25, 64.25, 10.25)
+SketchConstraintCoincidence_62 = Sketch_5.setCoincident(SketchLine_64.endPoint(), SketchLine_65.startPoint())
+SketchConstraintCoincidence_63 = Sketch_5.setCoincident(SketchLine_63.startPoint(), SketchLine_65.endPoint())
+SketchConstraintEqual_2 = Sketch_5.setEqual(SketchLine_65.result(), SketchLine_63.result())
+SketchConstraintVertical_18 = Sketch_5.setVertical(SketchLine_63.result())
+SketchConstraintHorizontal_12 = Sketch_5.setHorizontal(SketchLine_65.result())
+SketchConstraintDistanceVertical_7 = Sketch_5.setVerticalDistance(SketchLine_65.startPoint(), SketchLine_61.startPoint(), "Chamfer/2")
+SketchConstraintDistanceVertical_8 = Sketch_5.setVerticalDistance(SketchLine_61.startPoint(), SketchLine_63.endPoint(), "Chamfer*1.5")
 model.do()
 RevolutionCut_2.setNestedSketch(Sketch_5)
 # check Sketch_5