mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +05:00
enable optimization of mesh from gui
A new mesh should only be created if full meshing is done and not only some substeps like volume optimization.
This commit is contained in:
parent
d32d498259
commit
8b43ed2637
13
ng/ngpkg.cpp
13
ng/ngpkg.cpp
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user