py-output

This commit is contained in:
Joachim Schoeberl 2014-12-09 14:58:26 +00:00
parent 5840597b4c
commit 0cac1ddaeb
2 changed files with 10 additions and 2 deletions

View File

@ -327,8 +327,9 @@ void ExportCSG()
{
// testout = new ofstream ("test.out");
shared_ptr<Mesh> 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;

View File

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