Salome HOME
updated copyright message
[modules/shaper.git] / src / FeaturesPlugin / Test / TestBooleanCommon_MultiLevelCompound_v20190506_2.py
index e95f88f05540e91aebc919f904fd6c5e011d4a83..2ac2d126f769bf96c3076c7224f5cf2298d4beb3 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
@@ -102,7 +102,7 @@ Compound_3.result().subResult(0).setColor(0, 170, 0)
 Compound_3.result().subResult(1).setColor(0, 255, 0)
 Compound_3.result().subResult(1).subResult(0).setColor(0, 255, 0)
 Compound_3.result().subResult(1).subResult(1).setColor(0, 255, 0)
-Common_1 = model.addCommon(Part_1_doc, [model.selection("SOLID", "Compound_2_1_1_1"), model.selection("SOLID", "Compound_2_1_2_3")], [model.selection("COMPOUND", "Compound_3_1_2")], 20190506)
+Common_1 = model.addCommon(Part_1_doc, [model.selection("SOLID", "Compound_2_1_1_1"), model.selection("SOLID", "Compound_2_1_2_3")], [model.selection("COMPOUND", "Compound_3_1_2")], keepSubResults = True)
 
 model.testHaveNamingSubshapes(Common_1, model, Part_1_doc)
 
@@ -112,10 +112,10 @@ from GeomAPI import GeomAPI_Shape
 
 model.testNbResults(Common_1, 1)
 model.testNbSubResults(Common_1, [4])
-model.testNbSubShapes(Common_1, GeomAPI_Shape.SOLID, [7])
-model.testNbSubShapes(Common_1, GeomAPI_Shape.FACE, [36])
-model.testNbSubShapes(Common_1, GeomAPI_Shape.EDGE, [134])
-model.testNbSubShapes(Common_1, GeomAPI_Shape.VERTEX, [268])
-model.testResultsVolumes(Common_1, [22834.734413125825])
+model.testNbSubShapes(Common_1, GeomAPI_Shape.SOLID, [6])
+model.testNbSubShapes(Common_1, GeomAPI_Shape.FACE, [33])
+model.testNbSubShapes(Common_1, GeomAPI_Shape.EDGE, [128])
+model.testNbSubShapes(Common_1, GeomAPI_Shape.VERTEX, [256])
+model.testResultsVolumes(Common_1, [16551.5491059462365])
 
 assert(model.checkPythonDump())