2015-01-27 15:56:32 +00:00
|
|
|
// a wrapper to load netgen-dll into python
|
|
|
|
|
2015-01-23 10:14:42 +00:00
|
|
|
#include <iostream>
|
|
|
|
#include <boost/python.hpp>
|
|
|
|
|
2015-10-20 11:09:29 +02:00
|
|
|
#ifdef WIN32
|
|
|
|
#define DLL_HEADER __declspec(dllimport)
|
|
|
|
#else
|
|
|
|
#define DLL_HEADER
|
|
|
|
#endif
|
2015-01-23 10:14:42 +00:00
|
|
|
|
2015-10-20 11:09:29 +02:00
|
|
|
|
|
|
|
void DLL_HEADER ExportNetgenMeshing();
|
|
|
|
void DLL_HEADER ExportMeshVis();
|
|
|
|
void DLL_HEADER ExportCSG();
|
|
|
|
void DLL_HEADER ExportCSGVis();
|
|
|
|
void DLL_HEADER ExportGeom2d();
|
|
|
|
|
|
|
|
BOOST_PYTHON_MODULE(libngpy)
|
2015-01-23 10:14:42 +00:00
|
|
|
{
|
|
|
|
ExportCSG();
|
|
|
|
ExportCSGVis();
|
|
|
|
ExportNetgenMeshing();
|
|
|
|
ExportMeshVis();
|
|
|
|
ExportGeom2d();
|
2015-01-26 13:49:46 +00:00
|
|
|
}
|
|
|
|
|