[GRASS5] [bug #3874] (grass) Strange comportment of NVIZ after adding a surface.
Request Tracker
grass-bugs at intevation.de
Wed Nov 30 19:21:36 EST 2005
this bug's URL: http://intevation.de/rt/webrt?serial_num=3874
-------------------------------------------------------------------------
Subject: Strange comportment of NVIZ after adding a surface.
Platform: GNU/Linux/i386
grass obtained from: CVS
grass binary for platform: Compiled from Sources
GRASS Version: GRASS 6.1.cvs checked out at 20050112
Hello,
My english is quite bad...
After loading a state in NVIZ, only one of the loaded surfaces is available in the "surface" panel of NVIZ. A small change in "panel_surf.tcl" file seems to fix that:
--- panel_surf.tcl 2005-12-01 09:42:54.000000000 +1000
+++ panel_surf.tcl 2005-12-01 09:43:27.000000000 +1000
@@ -258,6 +258,8 @@
# Load procedure for loading state of Nviz
proc Nviz_surf_load { file_hook } {
+ Nviz_surf_reset
+
# Read the number of surfaces saved in this state file
gets $file_hook num_surfs
After adding a surface in the "surface" panel, when the "RESET" button is pressed in the "main" panel the "exag" and "height" values are wrong. A small change in the "exag.c" file seems to fix that:
--- exag.c 2005-12-01 09:42:40.000000000 +1000
+++ exag.c 2005-12-01 09:43:17.000000000 +1000
@@ -67,7 +67,7 @@
exag = 0.0;
for (i = 0; i < nsurfs; i++) {
if (GS_get_exag_guess(surf_list[i], &texag) > -1) {
- if (texag)
+ if (texag && texag <= 10)
exag = (texag > exag) ? texag : exag;
}
}
@@ -104,7 +104,7 @@
exag = 0.0;
for (i = 0; i < nsurfs; i++) {
if (GS_get_exag_guess(surf_list[i], &texag) > -1)
- if (texag)
+ if (texag && texag <= 10)
exag = texag > exag ? texag : exag;
}
if (exag == 0.0)
Those small changes are maybe not the right way to fix those problems, but I think that they can help to find out how to fix them.
Regards,
Stephane.
-------------------------------------------- Managed by Request Tracker
More information about the grass-dev
mailing list