mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +05:00
26 lines
501 B
C++
26 lines
501 B
C++
#ifdef WIN32
|
|
|
|
// a wrapper to load netgen-dll into python
|
|
|
|
|
|
#include <iostream>
|
|
#include <boost/python.hpp>
|
|
|
|
void __declspec(dllimport) ExportNetgenMeshing();
|
|
void __declspec(dllimport) ExportMeshVis();
|
|
void __declspec(dllimport) ExportCSG();
|
|
void __declspec(dllimport) ExportCSGVis();
|
|
void __declspec(dllimport) ExportGeom2d();
|
|
|
|
BOOST_PYTHON_MODULE(nglib)
|
|
{
|
|
ExportCSG();
|
|
ExportCSGVis();
|
|
ExportNetgenMeshing();
|
|
ExportMeshVis();
|
|
ExportGeom2d();
|
|
}
|
|
|
|
|
|
#endif
|