Salome HOME
updated copyright message
[modules/shaper.git] / src / FeaturesPlugin / Test / TestUnion_MultiLevelCompound_v20190506.py
index 63d3e03cbfe8c3cd6e3807f21032f3335cd38ac2..b1f5ca94279ff034a4544300d2f52ce7e797b4f1 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2014-2019  CEA/DEN, EDF R&D
+# Copyright (C) 2014-2023  CEA, EDF
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -68,7 +68,7 @@ Extrusion_1 = model.addExtrusion(Part_1_doc, [model.selection("COMPOUND", "Sketc
 Compound_1_objects = [model.selection("COMPSOLID", "Extrusion_1_1"), model.selection("SOLID", "Extrusion_1_2"), model.selection("SOLID", "Extrusion_1_3"), model.selection("SOLID", "Extrusion_1_4"), model.selection("SOLID", "Extrusion_1_5"), model.selection("SOLID", "Extrusion_1_6"), model.selection("SOLID", "Extrusion_1_7"), model.selection("SOLID", "Extrusion_1_8"), model.selection("SOLID", "Extrusion_1_9")]
 Compound_1 = model.addCompound(Part_1_doc, Compound_1_objects)
 Union_1_objects = [model.selection("SOLID", "Compound_1_1_1_1"), model.selection("SOLID", "Compound_1_1_1_2"), model.selection("SOLID", "Compound_1_1_1_3")]
-Union_1 = model.addUnion(Part_1_doc, Union_1_objects, 20190506)
+Union_1 = model.addUnion(Part_1_doc, Union_1_objects, keepSubResults = True)
 
 model.testHaveNamingSubshapes(Union_1, model, Part_1_doc)
 
@@ -77,7 +77,7 @@ model.end()
 from GeomAPI import GeomAPI_Shape
 
 model.testNbResults(Union_1, 1)
-model.testNbSubResults(Union_1, [9])
+model.testNbSubResults(Union_1, [2])
 model.testNbSubShapes(Union_1, GeomAPI_Shape.SOLID, [15])
 model.testNbSubShapes(Union_1, GeomAPI_Shape.FACE, [70])
 model.testNbSubShapes(Union_1, GeomAPI_Shape.EDGE, [224])