]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Store document in Platine test case for debug purposes
authorazv <azv@opencascade.com>
Thu, 5 May 2016 14:34:17 +0000 (17:34 +0300)
committerazv <azv@opencascade.com>
Thu, 5 May 2016 14:34:37 +0000 (17:34 +0300)
src/ModelAPI/ModelAPI.i
src/PythonAPI/examples/Platine.py

index aaf61bdc477cd4f22bbd3fa891e1637cea9270ab..f05afc1f0c732c027c0122ae69b9347cd603bbe9 100644 (file)
 %include "ModelAPI_ResultCompSolid.h"
 
 // std::list -> [] 
+%template(StringList) std::list<std::string>;
 %template(ObjectList) std::list<std::shared_ptr<ModelAPI_Object> >;
 %template(ResultList) std::list<std::shared_ptr<ModelAPI_Result> >;
 %template(DocumentList) std::list<std::shared_ptr<ModelAPI_Document> >;
index edec616e0560e5028dda4fffb34526cdbd10bb72..f037cece43650224fd4724026dcdd1a4624db3f4 100644 (file)
@@ -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())