mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-12 00:59:16 +05:00
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:
commit
0b323b4a21
13
ng/ngpkg.cpp
13
ng/ngpkg.cpp
@ -1350,10 +1350,15 @@ namespace netgen
|
|||||||
#endif
|
#endif
|
||||||
if (ng_geometry)
|
if (ng_geometry)
|
||||||
{
|
{
|
||||||
mesh = make_shared<Mesh> ();
|
if (perfstepsstart == 1)
|
||||||
// vsmesh.SetMesh (mesh);
|
{
|
||||||
SetGlobalMesh (mesh);
|
mesh = make_shared<Mesh> ();
|
||||||
mesh -> SetGeometry(ng_geometry);
|
// vsmesh.SetMesh (mesh);
|
||||||
|
SetGlobalMesh (mesh);
|
||||||
|
mesh -> SetGeometry(ng_geometry);
|
||||||
|
}
|
||||||
|
if(!mesh)
|
||||||
|
throw Exception("Need existing global mesh");
|
||||||
mparam.perfstepsstart = perfstepsstart;
|
mparam.perfstepsstart = perfstepsstart;
|
||||||
mparam.perfstepsend = perfstepsend;
|
mparam.perfstepsend = perfstepsend;
|
||||||
int res = ng_geometry -> GenerateMesh (mesh, mparam);
|
int res = ng_geometry -> GenerateMesh (mesh, mparam);
|
||||||
|
Loading…
Reference in New Issue
Block a user