Set OCC geometry in GenerateMesh()

This commit is contained in:
Matthias Hochsteger 2019-10-23 11:26:23 +02:00
parent 37198d0cee
commit 22a894b8cf

View File

@ -185,8 +185,8 @@ DLL_HEADER void ExportNgOCC(py::module &m)
}
geo->SetOCCParameters(occparam);
auto mesh = make_shared<Mesh>();
geo->GenerateMesh(mesh, mp);
mesh->SetGeometry(geo);
geo->GenerateMesh(mesh, mp);
SetGlobalMesh(mesh);
ng_geometry = geo;
return mesh;