2015-01-27 20:56:32 +05:00
|
|
|
// a wrapper to load netgen-dll into python
|
|
|
|
|
2015-01-23 15:14:42 +05:00
|
|
|
#include <iostream>
|
|
|
|
#include <boost/python.hpp>
|
|
|
|
|
2015-10-20 14:09:29 +05:00
|
|
|
#ifdef WIN32
|
|
|
|
#define DLL_HEADER __declspec(dllimport)
|
|
|
|
#else
|
|
|
|
#define DLL_HEADER
|
|
|
|
#endif
|
2015-01-23 15:14:42 +05:00
|
|
|
|
2015-10-20 14:09:29 +05: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 15:14:42 +05:00
|
|
|
{
|
|
|
|
ExportCSG();
|
|
|
|
ExportCSGVis();
|
|
|
|
ExportNetgenMeshing();
|
|
|
|
ExportMeshVis();
|
|
|
|
ExportGeom2d();
|
2015-01-26 18:49:46 +05:00
|
|
|
}
|
|
|
|
|
2016-08-09 17:03:47 +05:00
|
|
|
// Force linking libnglib to libnetgenpy
|
|
|
|
namespace netgen
|
|
|
|
{
|
|
|
|
void MyBeep (int i);
|
|
|
|
void MyDummyToForceLinkingNGLib()
|
|
|
|
{
|
|
|
|
MyBeep(0);
|
|
|
|
}
|
|
|
|
}
|