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
24 lines
774 B
C++
24 lines
774 B
C++
#include <iostream>
|
|
#include <../general/ngpython.hpp>
|
|
#include <core/ngcore_api.hpp>
|
|
|
|
void NGCORE_API_IMPORT ExportMeshVis(py::module &m);
|
|
void NGCORE_API_IMPORT ExportCSGVis(py::module &m);
|
|
void NGCORE_API_IMPORT ExportSTLVis(py::module &m);
|
|
namespace netgen
|
|
{
|
|
std::vector<unsigned char> NGCORE_API_IMPORT Snapshot( int w, int h );
|
|
}
|
|
|
|
PYBIND11_MODULE(libngguipy, ngpy)
|
|
{
|
|
py::module::import("pyngcore");
|
|
py::module meshvis = ngpy.def_submodule("meshvis", "pybind meshvis module");
|
|
ExportMeshVis(meshvis);
|
|
py::module csgvis = ngpy.def_submodule("csgvis", "pybind csgvis module");
|
|
ExportCSGVis(csgvis);
|
|
py::module stlvis = ngpy.def_submodule("stlvis", "pybind stlvis module");
|
|
ExportSTLVis(stlvis);
|
|
ngpy.def("Snapshot", netgen::Snapshot);
|
|
}
|