mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +05:00
Remove occ output
This commit is contained in:
parent
cb0f4fe75e
commit
5672e05a40
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user