mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-26 21:00:34 +05:00
set global geometry when occ file is loaded
This commit is contained in:
parent
ba620a5b41
commit
f065651227
@ -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 ¶m)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user