From 0cac1ddaeb76847d5e56b9ccdf805b00397daa41 Mon Sep 17 00:00:00 2001 From: Joachim Schoeberl Date: Tue, 9 Dec 2014 14:58:26 +0000 Subject: [PATCH] py-output --- libsrc/csg/python_csg.cpp | 5 +++-- libsrc/meshing/python_mesh.cpp | 7 +++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/libsrc/csg/python_csg.cpp b/libsrc/csg/python_csg.cpp index bd86ed39..0f929662 100644 --- a/libsrc/csg/python_csg.cpp +++ b/libsrc/csg/python_csg.cpp @@ -327,8 +327,9 @@ void ExportCSG() { // testout = new ofstream ("test.out"); shared_ptr dummy; - cout << "Genrate Mesh, params = " << param << endl; - cout << "geom, bbox = " << geo.BoundingBox() << endl; + cout << "Genrate Mesh" << endl; + // cout << "Genrate Mesh, params = " << param << endl; + // cout << "geom, bbox = " << geo.BoundingBox() << endl; geo.FindIdenticSurfaces(1e-8 * geo.MaxSize()); geo.GenerateMesh (dummy, param, 0, 6); return dummy; diff --git a/libsrc/meshing/python_mesh.cpp b/libsrc/meshing/python_mesh.cpp index 9c5dde91..474a1ee9 100644 --- a/libsrc/meshing/python_mesh.cpp +++ b/libsrc/meshing/python_mesh.cpp @@ -149,6 +149,13 @@ void ExportNetgenMeshing() delete testout; testout = new ofstream (filename); })); + + bp::def("SetMessageImportance", FunctionPointer ([] (int importance) + { + int old = printmessage_importance; + printmessage_importance = importance; + return old; + })); }