]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for the issue #2835 : Add TestPartitionFaceSolid.py in test suite
authormpv <mpv@opencascade.com>
Fri, 11 Jan 2019 13:34:17 +0000 (16:34 +0300)
committermpv <mpv@opencascade.com>
Fri, 11 Jan 2019 13:34:17 +0000 (16:34 +0300)
src/FeaturesPlugin/CMakeLists.txt
src/FeaturesPlugin/Test/TestPartitionFaceSolid.py

index 1170570bf08fd56b96343e7e993277a1b917584f..d0f0261a0316464e790e188b6da20bb48c919c75 100644 (file)
@@ -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
index 22c616923b8414743f24fde604b95cf95dcac6de..ff450f9df2d997b0233e39840e4a58cdb6462ba0 100644 (file)
@@ -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()