From 10a246055c23b1d94f724d71e42bc944b8ebfeee Mon Sep 17 00:00:00 2001 From: Joachim Schoeberl Date: Sun, 26 Jan 2014 20:23:48 +0000 Subject: [PATCH] shrink tets --- libsrc/visualization/vsmesh.cpp | 1 - ng/ngpkg.cpp | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/libsrc/visualization/vsmesh.cpp b/libsrc/visualization/vsmesh.cpp index 23408838..1e050017 100644 --- a/libsrc/visualization/vsmesh.cpp +++ b/libsrc/visualization/vsmesh.cpp @@ -1722,7 +1722,6 @@ namespace netgen void VisualSceneMesh :: BuildTetList() { - if (tettimestamp > mesh->GetTimeStamp () && tettimestamp > vispar.clipping.timestamp ) return; diff --git a/ng/ngpkg.cpp b/ng/ngpkg.cpp index afc47389..f991e27a 100644 --- a/ng/ngpkg.cpp +++ b/ng/ngpkg.cpp @@ -2943,8 +2943,13 @@ void PlayAnimFile(const char* name, int speed, int maxcnt) atoi (Tcl_GetVar (interp, "::viewoptions.drawpyramids", TCL_GLOBAL_ONLY)); vispar.drawhexes = atoi (Tcl_GetVar (interp, "::viewoptions.drawhexes", TCL_GLOBAL_ONLY)); + /* vispar.shrink = atof (Tcl_GetVar (interp, "::viewoptions.shrink", TCL_GLOBAL_ONLY)); + */ + double hshrink = atof (Tcl_GetVar (interp, "::viewoptions.shrink", TCL_GLOBAL_ONLY)); + if (hshrink != vispar.shrink) + { vispar.shrink = hshrink; vispar.clipping.timestamp = NextTimeStamp();} vispar.drawidentified = atoi (Tcl_GetVar (interp, "::viewoptions.drawidentified", TCL_GLOBAL_ONLY)); vispar.drawpointnumbers =