set global geometry when occ file is loaded

This commit is contained in:
Christopher Lackner 2018-08-01 15:53:01 +02:00
parent ba620a5b41
commit f065651227

View File

@ -113,7 +113,8 @@ DLL_HEADER void ExportNgOCC(py::module &m)
ifstream ist(filename);
OCCGeometry * instance = new OCCGeometry();
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>());
m.def("GenerateMesh", FunctionPointer([] (shared_ptr<OCCGeometry> geo, MeshingParameters &param)
{