Salome HOME
Updated copyright comment
[modules/shaper.git] / src / ModelAPI / Test / TestSelectorShell.py
index a699cbdb34eee43e5f8e384821bef95be919b43c..46af54d78061db45604d62353467a612d2c8f654 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2014-2019  CEA/DEN, EDF R&D
+# Copyright (C) 2014-2024  CEA, EDF
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -31,6 +31,7 @@ aBoxResult = Box_1.feature().results()[0]
 aShell = GeomAPI_ShapeExplorer(aBoxResult.shape(), GeomAPI_Shape.SHELL)
 aGroup = Part_1_doc.addFeature("Group")
 aGroup.selectionList("group_list").append(aBoxResult, aShell.current())
+aGroup.selectionList("group_list").setSelectionType("SHELL") # to compute the shape for the whole result selection correctly
 model.end()
 
 # check that the resulting group is correct