From: azv Date: Thu, 5 May 2016 14:34:17 +0000 (+0300) Subject: Store document in Platine test case for debug purposes X-Git-Tag: V_2.3.0~14 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6c2db92a41188bb3becbd20e1b5dcaeda7099eab;p=modules%2Fshaper.git Store document in Platine test case for debug purposes --- diff --git a/src/ModelAPI/ModelAPI.i b/src/ModelAPI/ModelAPI.i index aaf61bdc4..f05afc1f0 100644 --- a/src/ModelAPI/ModelAPI.i +++ b/src/ModelAPI/ModelAPI.i @@ -101,6 +101,7 @@ %include "ModelAPI_ResultCompSolid.h" // std::list -> [] +%template(StringList) std::list; %template(ObjectList) std::list >; %template(ResultList) std::list >; %template(DocumentList) std::list >; diff --git a/src/PythonAPI/examples/Platine.py b/src/PythonAPI/examples/Platine.py index edec616e0..f037cece4 100644 --- a/src/PythonAPI/examples/Platine.py +++ b/src/PythonAPI/examples/Platine.py @@ -4,6 +4,7 @@ import geom import model +import ModelAPI # Initialisation model.begin() @@ -199,6 +200,11 @@ b3 = body_3() boolean = model.addAddition(part, boolean.result() + b3.result()) model.do() +# START DEBUG PURPOSES +# prepare a study without last operation to trap floating problem with degenerated line +results = ModelAPI.StringList() +ModelAPI.ModelAPI_Session.get().save("/misc/dn48/newgem/azv/testPlatine", results) +# END DEBUG PURPOSES b4 = body_4() boolean = model.addAddition(part, boolean.result() + b4.result())