mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-27 06:10: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);
|
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 ¶m)
|
m.def("GenerateMesh", FunctionPointer([] (shared_ptr<OCCGeometry> geo, MeshingParameters ¶m)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user