From: mpv Date: Fri, 11 Jan 2019 13:34:17 +0000 (+0300) Subject: Fix for the issue #2835 : Add TestPartitionFaceSolid.py in test suite X-Git-Tag: Jan2019~25 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4257b54d608583343891419c8699ea5ca94106c7;p=modules%2Fshaper.git Fix for the issue #2835 : Add TestPartitionFaceSolid.py in test suite --- diff --git a/src/FeaturesPlugin/CMakeLists.txt b/src/FeaturesPlugin/CMakeLists.txt index 1170570bf..d0f0261a0 100644 --- a/src/FeaturesPlugin/CMakeLists.txt +++ b/src/FeaturesPlugin/CMakeLists.txt @@ -285,7 +285,7 @@ ADD_UNIT_TESTS(TestExtrusion.py TestPartitionBox4Planes.py TestPartitionEdgeSolid.py TestPartitionFace2Solid.py -# TestPartitionFaceSolid.py + TestPartitionFaceSolid.py TestPartitionFaceWire.py TestPartitionInclinedFaceSolid.py TestPartitionWireFaceSolid.py diff --git a/src/FeaturesPlugin/Test/TestPartitionFaceSolid.py b/src/FeaturesPlugin/Test/TestPartitionFaceSolid.py index 22c616923..ff450f9df 100644 --- a/src/FeaturesPlugin/Test/TestPartitionFaceSolid.py +++ b/src/FeaturesPlugin/Test/TestPartitionFaceSolid.py @@ -47,8 +47,8 @@ SketchConstraintHorizontal_1 = Sketch_1.setHorizontal(SketchLine_6.result()) SketchConstraintHorizontal_2 = Sketch_1.setHorizontal(SketchLine_4.result()) SketchConstraintHorizontal_3 = Sketch_1.setHorizontal(SketchLine_1.result()) model.do() -Revolution_1 = model.addRevolution(Part_1_doc, [model.selection("FACE", "Sketch_1/Face-SketchLine_1r-SketchLine_2r-SketchLine_3r-SketchLine_4r-SketchLine_5r-SketchLine_6r-SketchLine_7r")], model.selection("EDGE", "PartSet/OZ"), 180, 0) -Sketch_2 = model.addSketch(Part_1_doc, model.selection("FACE", "Revolution_1_1/To_Face_1")) +Revolution_1 = model.addRevolution(Part_1_doc, [model.selection("COMPOUND", "Sketch_1")], model.selection("EDGE", "PartSet/OZ"), 180, 0) +Sketch_2 = model.addSketch(Part_1_doc, model.standardPlane("YOZ")) SketchLine_8 = Sketch_2.addLine(61.72045613220821, 51.92790864086226, -64.56856594464165, 51.92790864086226) SketchLine_9 = Sketch_2.addLine(-64.56856594464165, 51.92790864086226, -64.56856594464165, -5.323114700643004) SketchLine_10 = Sketch_2.addLine(-64.56856594464165, -5.323114700643004, 61.72045613220821, -5.323114700643004) @@ -62,7 +62,7 @@ SketchConstraintVertical_4 = Sketch_2.setVertical(SketchLine_9.result()) SketchConstraintHorizontal_5 = Sketch_2.setHorizontal(SketchLine_10.result()) SketchConstraintVertical_5 = Sketch_2.setVertical(SketchLine_11.result()) model.do() -Face_1 = model.addFace(Part_1_doc, [model.selection("EDGE", "Sketch_2/Edge-SketchLine_8"), model.selection("EDGE", "Sketch_2/Edge-SketchLine_11"), model.selection("EDGE", "Sketch_2/Edge-SketchLine_10"), model.selection("EDGE", "Sketch_2/Edge-SketchLine_9")]) +Face_1 = model.addFace(Part_1_doc, [model.selection("FACE", "Sketch_2/Face-SketchLine_8r-SketchLine_9f-SketchLine_10f-SketchLine_11f")]) Partition_1 = model.addPartition(Part_1_doc, [model.selection("SOLID", "Revolution_1_1"), model.selection("FACE", "Face_1_1")]) model.do()