]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
[PythonAPI] Add return() to boolean feature
authorspo <sergey.pokhodenko@opencascade.com>
Thu, 17 Dec 2015 10:59:10 +0000 (13:59 +0300)
committerspo <sergey.pokhodenko@opencascade.com>
Thu, 17 Dec 2015 11:53:08 +0000 (14:53 +0300)
src/PythonAPI/model/features/boolean.py

index 489c4282d8bb8be8cc0560a0d16ccde83e6586f4..00085cd4c44c772b9c8eeb2126db212d5b6e5ef8 100644 (file)
@@ -6,7 +6,7 @@ Copyright (C) 2014-20xx CEA/DEN, EDF R&D
 from GeomAlgoAPI import GeomAlgoAPI_Boolean
 
 from model.roots import Interface
-
+from model import Selection
 
 def addAddition(part, *args):
     """Perform addition in the Part.
@@ -144,3 +144,7 @@ class Boolean(Interface):
         """
         self._fillAttribute(self._bool_type, bool_type)
         pass
+
+    def result(self):
+        """F.result() -> list of Selection objects"""
+        return [Selection(result, result.shape()) for result in (self.firstResult(),)]