-# 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
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)
-Smash_1 = model.addSmash(Part_1_doc, [model.selection("SOLID", "Compound_2_1_1_1"), model.selection("SOLID", "Compound_2_1_2_3")], [model.selection("SOLID", "Compound_3_1_2_2")], 20190506)
+Smash_1 = model.addSmash(Part_1_doc, [model.selection("SOLID", "Compound_2_1_1_1"), model.selection("SOLID", "Compound_2_1_2_3")], [model.selection("SOLID", "Compound_3_1_2_2")], keepSubResults = True)
model.testHaveNamingSubshapes(Smash_1, model, Part_1_doc)
from GeomAPI import GeomAPI_Shape
model.testNbResults(Smash_1, 1)
-model.testNbSubResults(Smash_1, [3])
+model.testNbSubResults(Smash_1, [2])
model.testNbSubShapes(Smash_1, GeomAPI_Shape.SOLID, [9])
model.testNbSubShapes(Smash_1, GeomAPI_Shape.FACE, [83])
model.testNbSubShapes(Smash_1, GeomAPI_Shape.EDGE, [376])