From 3b70dc747169d1b9965f3b33a5e03a902a4c9a6d Mon Sep 17 00:00:00 2001 From: spo Date: Thu, 17 Dec 2015 13:59:10 +0300 Subject: [PATCH] [PythonAPI] Add return() to boolean feature --- src/PythonAPI/model/features/boolean.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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(),)] -- 2.39.2