From 645a55f3d360c3932f592f4647727ae103d88d22 Mon Sep 17 00:00:00 2001 From: Joachim Schoeberl Date: Mon, 20 Aug 2012 14:10:50 +0000 Subject: [PATCH] parallel visualization --- ng/ngpkg.cpp | 5 ++--- ng/parallelfunc.cpp | 7 ++++++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/ng/ngpkg.cpp b/ng/ngpkg.cpp index 6e3ab925..a2572395 100644 --- a/ng/ngpkg.cpp +++ b/ng/ngpkg.cpp @@ -218,7 +218,6 @@ namespace netgen try { - //mesh -> Load (filename); ifstream infile(filename.c_str()); mesh -> Load(infile); @@ -3096,8 +3095,8 @@ void PlayAnimFile(const char* name, int speed, int maxcnt) #ifdef _MSC_VER Ng_stl_Init(interp); Ng_geom2d_Init (interp); -#ifdef OCCGEOMETRY - Ng_occ_Init (interp); +#ifdef OCCGEOMETRY + Ng_occ_Init (interp); #endif #endif diff --git a/ng/parallelfunc.cpp b/ng/parallelfunc.cpp index ecf775ff..b22a3b3e 100644 --- a/ng/parallelfunc.cpp +++ b/ng/parallelfunc.cpp @@ -70,7 +70,6 @@ using netgen::RegisterUserFormats; - void ParallelRun() { string message; @@ -82,6 +81,7 @@ void ParallelRun() if (parameters.StringFlagDefined ("testout")) testout = new ofstream (string("testout_proc") + id ); + while ( true ) @@ -296,6 +296,11 @@ void ParallelRun() vssolution.DrawSurfaceElements(); } + if (redraw_cmd == "solsurfellinelist") + { + vssolution.DrawSurfaceElementLines(); + } + if (redraw_cmd == "clipplanetrigs") { vssolution.DrawClipPlaneTrigs();