Merge branch 'set_global_geo_occ' into 'master'

set global geometry when occ file is loaded

See merge request jschoeberl/netgen!94
This commit is contained in:
Joachim Schöberl 2018-08-01 19:12:35 +02:00
commit 22c35dab4b

View File

@ -113,7 +113,8 @@ DLL_HEADER void ExportNgOCC(py::module &m)
ifstream ist(filename); ifstream ist(filename);
OCCGeometry * instance = new OCCGeometry(); OCCGeometry * instance = new OCCGeometry();
instance = LoadOCC_STEP(filename.c_str()); instance = LoadOCC_STEP(filename.c_str());
return shared_ptr<OCCGeometry>(instance, NOOP_Deleter); ng_geometry = shared_ptr<OCCGeometry>(instance, NOOP_Deleter);
return ng_geometry;
}),py::call_guard<py::gil_scoped_release>()); }),py::call_guard<py::gil_scoped_release>());
m.def("GenerateMesh", FunctionPointer([] (shared_ptr<OCCGeometry> geo, MeshingParameters &param) m.def("GenerateMesh", FunctionPointer([] (shared_ptr<OCCGeometry> geo, MeshingParameters &param)
{ {