From: spo Date: Thu, 17 Dec 2015 10:59:10 +0000 (+0300) Subject: [PythonAPI] Add return() to boolean feature X-Git-Tag: V_2.1.0~162^2~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3b70dc747169d1b9965f3b33a5e03a902a4c9a6d;p=modules%2Fshaper.git [PythonAPI] Add return() to boolean feature --- diff --git a/src/PythonAPI/model/features/boolean.py b/src/PythonAPI/model/features/boolean.py index 489c4282d..00085cd4c 100644 --- a/src/PythonAPI/model/features/boolean.py +++ b/src/PythonAPI/model/features/boolean.py @@ -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(),)]