Merge branch 'remove_occ_output' into 'master'

Remove occ output

See merge request jschoeberl/netgen!445
This commit is contained in:
Christopher Lackner 2021-11-04 10:54:33 +00:00
commit ef1bf2f727

View File

@ -48,6 +48,8 @@
#include <GCE2d_MakeSegment.hxx>
#include <GCE2d_MakeCircle.hxx>
#include <Message.hxx>
#if OCC_VERSION_MAJOR>=7 && OCC_VERSION_MINOR>=4
#define OCC_HAVE_DUMP_JSON
#endif
@ -98,6 +100,14 @@ DLL_HEADER void ExportNgOCC(py::module &m)
{
m.attr("occ_version") = OCC_VERSION_COMPLETE;
// suppress info messages from occ (like statistics on Transfer)
Message_Gravity aGravity = Message_Alarm;
for (Message_SequenceOfPrinters::Iterator aPrinterIter (Message::DefaultMessenger()->Printers());
aPrinterIter.More(); aPrinterIter.Next())
{
aPrinterIter.Value()->SetTraceLevel (aGravity);
}
ExportNgOCCBasic(m);
ExportNgOCCShapes(m);