mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-24 03:40:34 +05:00
set global mesh in occ before generatemesh
to visualize meshing
This commit is contained in:
parent
a6a7d278dc
commit
6065fe40f4
@ -265,10 +265,10 @@ DLL_HEADER void ExportNgOCC(py::module &m)
|
||||
geo->SetOCCParameters(occparam);
|
||||
auto mesh = make_shared<Mesh>();
|
||||
mesh->SetGeometry(geo);
|
||||
SetGlobalMesh(mesh);
|
||||
auto result = geo->GenerateMesh(mesh, mp);
|
||||
if(result != 0)
|
||||
throw Exception("Meshing failed!");
|
||||
SetGlobalMesh(mesh);
|
||||
ng_geometry = geo;
|
||||
return mesh;
|
||||
}, py::arg("mp") = nullptr,
|
||||
|
Loading…
Reference in New Issue
Block a user