mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-14 10:08:32 +05:00
Merge branch 'remove_occ_output' into 'master'
Remove occ output See merge request jschoeberl/netgen!445
This commit is contained in:
commit
ef1bf2f727
@ -48,6 +48,8 @@
|
|||||||
#include <GCE2d_MakeSegment.hxx>
|
#include <GCE2d_MakeSegment.hxx>
|
||||||
#include <GCE2d_MakeCircle.hxx>
|
#include <GCE2d_MakeCircle.hxx>
|
||||||
|
|
||||||
|
#include <Message.hxx>
|
||||||
|
|
||||||
#if OCC_VERSION_MAJOR>=7 && OCC_VERSION_MINOR>=4
|
#if OCC_VERSION_MAJOR>=7 && OCC_VERSION_MINOR>=4
|
||||||
#define OCC_HAVE_DUMP_JSON
|
#define OCC_HAVE_DUMP_JSON
|
||||||
#endif
|
#endif
|
||||||
@ -98,6 +100,14 @@ DLL_HEADER void ExportNgOCC(py::module &m)
|
|||||||
{
|
{
|
||||||
m.attr("occ_version") = OCC_VERSION_COMPLETE;
|
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);
|
ExportNgOCCBasic(m);
|
||||||
ExportNgOCCShapes(m);
|
ExportNgOCCShapes(m);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user