-# 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
""" Supported types of filtered shapes """
return theType == GeomAPI_Shape.FACE
+ def isMultiple(self):
+ """ Returns True if the filter can be used several times within one selection """
+ return True
+
def isOk(self, theShape, theResult, theArgs):
""" True if theShape is applicable for the filter """
selectedShapeAttr = modelAPI_AttributeSelection(theArgs.argument("Shape"))
def initAttributes(self, theArgs):
""" Initializes arguments of a filter """
- theArgs.initAttribute("Shape", ModelAPI_AttributeSelection_typeId())
- theArgs.initAttribute("Propagation", ModelAPI_AttributeBoolean_typeId())
+ theArgs.initAttribute("Shape", ModelAPI_AttributeSelection.typeId())
+ theArgs.initAttribute("Propagation", ModelAPI_AttributeBoolean.typeId())
def adjacentFaces(self, theFace, theMapSA, theShapeType, theApplicableFaces, theRecursive = True):
""" Find all faces neighbour to theFace """