Merge branch 'optimize_mesh_from_gui' into 'master'

enable optimization of mesh from gui

See merge request jschoeberl/netgen!238
This commit is contained in:
Joachim Schöberl 2019-09-16 15:37:07 +00:00
commit 0b323b4a21

View File

@ -1350,10 +1350,15 @@ namespace netgen
#endif
if (ng_geometry)
{
mesh = make_shared<Mesh> ();
// vsmesh.SetMesh (mesh);
SetGlobalMesh (mesh);
mesh -> SetGeometry(ng_geometry);
if (perfstepsstart == 1)
{
mesh = make_shared<Mesh> ();
// vsmesh.SetMesh (mesh);
SetGlobalMesh (mesh);
mesh -> SetGeometry(ng_geometry);
}
if(!mesh)
throw Exception("Need existing global mesh");
mparam.perfstepsstart = perfstepsstart;
mparam.perfstepsend = perfstepsend;
int res = ng_geometry -> GenerateMesh (mesh, mparam);