mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +05:00
b694b4667a
move fieldlines code to meshing dir move visualization function pointers to meshing directory DLL_HEADER -> NGGUI_API in visualization lib move soldata.hpp to meshing update occ, no freetype necessary anymore
34 lines
1.2 KiB
C++
34 lines
1.2 KiB
C++
// a wrapper to load netgen-dll into python
|
|
|
|
#include <iostream>
|
|
#include <../general/ngpython.hpp>
|
|
#include <core/ngcore_api.hpp>
|
|
|
|
void NGCORE_API_IMPORT ExportNetgenMeshing(py::module &m);
|
|
void NGCORE_API_IMPORT ExportMeshVis(py::module &m);
|
|
void NGCORE_API_IMPORT ExportCSG(py::module &m);
|
|
void NGCORE_API_IMPORT ExportCSGVis(py::module &m);
|
|
void NGCORE_API_IMPORT ExportGeom2d(py::module &m);
|
|
void NGCORE_API_IMPORT ExportSTL(py::module &m);
|
|
void NGCORE_API_IMPORT ExportSTLVis(py::module &m);
|
|
#ifdef OCCGEOMETRY
|
|
void NGCORE_API_IMPORT ExportNgOCC(py::module &m);
|
|
#endif // OCCGEOMETRY
|
|
|
|
PYBIND11_MODULE(libngpy, ngpy)
|
|
{
|
|
py::module::import("pyngcore");
|
|
py::module meshing = ngpy.def_submodule("_meshing", "pybind meshing module");
|
|
ExportNetgenMeshing(meshing);
|
|
py::module csg = ngpy.def_submodule("_csg", "pybind csg module");
|
|
ExportCSG(csg);
|
|
py::module geom2d = ngpy.def_submodule("_geom2d", "pybind geom2d module");
|
|
ExportGeom2d(geom2d);
|
|
py::module stl = ngpy.def_submodule("_stl", "pybind stl module");
|
|
ExportSTL(stl);
|
|
#ifdef OCCGEOMETRY
|
|
py::module NgOCC = ngpy.def_submodule("_NgOCC", "pybind NgOCC module");
|
|
ExportNgOCC(NgOCC);
|
|
#endif // OCCGEOMETRY
|
|
}
|