X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModelAPI%2FTest%2FTestSelectorShell.py;h=46af54d78061db45604d62353467a612d2c8f654;hb=77ce6d35ac8d2f0fdaecb4f23e0870bf74e36103;hp=ba855c69bfae97cab9bfff66207a9b08ead32f38;hpb=97917d3698f5a2f7fc9596e7c755ff8f6751e373;p=modules%2Fshaper.git diff --git a/src/ModelAPI/Test/TestSelectorShell.py b/src/ModelAPI/Test/TestSelectorShell.py index ba855c69b..46af54d78 100644 --- a/src/ModelAPI/Test/TestSelectorShell.py +++ b/src/ModelAPI/Test/TestSelectorShell.py @@ -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 @@ -17,8 +17,6 @@ # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # -# -*- coding: utf-8 -*- - from salome.shaper import model from GeomAPI import * @@ -33,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