From: azv Date: Fri, 29 Dec 2017 06:54:15 +0000 (+0300) Subject: Update "plug" model to avoid instability X-Git-Tag: V_2.10.1~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6c87ad4eca0f083c335d0fc969e320000111f2b2;p=modules%2Fshaper.git Update "plug" model to avoid instability --- diff --git a/test.models/plug.py b/test.models/plug.py index 5c7c8fab2..a1d9f63b7 100644 --- a/test.models/plug.py +++ b/test.models/plug.py @@ -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