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; + })); }