mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 13:30:34 +05:00
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:
commit
22c35dab4b
@ -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