From b1be0eea1b939dbff90a4f99968553ae71f10eff Mon Sep 17 00:00:00 2001 From: Gerhard Kitzler Date: Thu, 4 Sep 2014 15:15:17 +0000 Subject: [PATCH] moved nglib export module to nglib.cpp --- nglib/nglib.cpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/nglib/nglib.cpp b/nglib/nglib.cpp index 6f11017d..34c20836 100644 --- a/nglib/nglib.cpp +++ b/nglib/nglib.cpp @@ -1205,12 +1205,12 @@ namespace netgen */ - +#ifndef WIN32 void ResetTime () { ; } - +#endif @@ -1240,3 +1240,12 @@ void Ng_SetSolutionData (Ng_SolutionData * soldata) void Ng_InitSolutionData (Ng_SolutionData * soldata) { ; } +#ifdef NG_PYTHON +#include +void ExportNetgenMeshing(); +void ExportCSG(); +BOOST_PYTHON_MODULE(nglib) { + ExportCSG(); + ExportNetgenMeshing(); +} +#endif \ No newline at end of file