X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FFeaturesPlugin%2FTest%2FTestFillFaceFace.py;h=d7ce14972ca30eae6ab0e599af24917134607212;hb=34c2ee35f2b8ae2ef7a0673c7841f11078e06f3c;hp=a5db1f74e1b2030fc16354ab9a59dc049e527fdf;hpb=0d3a31a7a6fb4f680c3b3f1360f5a6b40b6a4f0b;p=modules%2Fshaper.git diff --git a/src/FeaturesPlugin/Test/TestFillFaceFace.py b/src/FeaturesPlugin/Test/TestFillFaceFace.py index a5db1f74e..d7ce14972 100644 --- a/src/FeaturesPlugin/Test/TestFillFaceFace.py +++ b/src/FeaturesPlugin/Test/TestFillFaceFace.py @@ -54,29 +54,15 @@ SketchConstraintCoincidence_8 = Sketch_2.setCoincident(SketchPoint_2.result(), S SketchConstraintCoincidence_9 = Sketch_2.setCoincident(SketchLine_5.endPoint(), SketchArc_2.startPoint()) SketchConstraintCoincidence_10 = Sketch_2.setCoincident(SketchArc_2.endPoint(), SketchLine_4.startPoint()) SketchConstraintRadius_2 = Sketch_2.setRadius(SketchArc_2.results()[1], "R") -SketchProjection_4 = Sketch_2.addProjection(model.selection("EDGE", "PartSet/OZ"), False) -SketchLine_6 = SketchProjection_4.createdFeature() -SketchConstraintMirror_1 = Sketch_2.addMirror(SketchLine_6.result(), [SketchArc_2.results()[1]]) -[SketchArc_3] = SketchConstraintMirror_1.mirrored() -SketchLine_7 = Sketch_2.addLine(-31.79164821526215, 49.99496405877289, -27.24680168984479, -49.85269382803261) -SketchConstraintCoincidence_11 = Sketch_2.setCoincident(SketchAPI_Arc(SketchArc_3).endPoint(), SketchLine_7.startPoint()) -SketchConstraintCoincidence_12 = Sketch_2.setCoincident(SketchAPI_Arc(SketchArc_3).startPoint(), SketchLine_7.endPoint()) model.do() Face_1 = model.addFace(Part_1_doc, [model.selection("WIRE", "Sketch_1/Wire-SketchLine_1f-SketchLine_3f-SketchArc_1_2f")]) Face_2 = model.addFace(Part_1_doc, [model.selection("WIRE", "Sketch_2/Wire-SketchLine_4f-SketchLine_5f-SketchArc_2_2f")]) -Face_3 = model.addFace(Part_1_doc, [model.selection("WIRE", "Sketch_2/Wire-SketchArc_3_2f-SketchLine_7r")]) -Symmetry_1 = model.addSymmetry(Part_1_doc, [model.selection("FACE", "Face_1_1")], model.selection("FACE", "PartSet/XOZ")) -Recover_1 = model.addRecover(Part_1_doc, Symmetry_1, [Face_1.result()]) -Boolean_1 = model.addFill(Part_1_doc, [model.selection("FACE", "Recover_1_1")], [model.selection("FACE", "Face_2_1")]) -Boolean_2 = model.addFill(Part_1_doc, [model.selection("FACE", "Symmetry_1_1")], [model.selection("FACE", "Face_3_1")]) +Boolean_1 = model.addFill(Part_1_doc, [model.selection("FACE", "Face_1_1")], [model.selection("FACE", "Face_2_1")]) model.do() -model.checkBooleansResult(Boolean_1, model, 1, [2], [0], [2], [6], [12]) +model.checkResult(Boolean_1, model, 1, [2], [0], [2], [6], [12]) model.testHaveNamingSubshapes(Boolean_1, model, Part_1_doc) -model.checkBooleansResult(Boolean_2, model, 1, [0], [0], [1], [5], [10]) -model.testHaveNamingSubshapes(Boolean_2, model, Part_1_doc) - model.end() assert(model.checkPythonDump())