mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-14 18:08:33 +05:00
25 lines
499 B
C++
25 lines
499 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
|