Details Ticket 3874


Comment | Reply | Take | Resolve


Serial Number 3874
Subject Strange comportment of NVIZ after adding a surface.
Area grass6
Queue grass
Requestors stephane.bidet@tremplin-utc.net
Owner none
Status open
Last User Contact Sun Jul 23 22:05:56 2006 (2 yr ago)
Current Priority 30
Final Priority 70
Due No date assigned
Last Action Wed Jul 26 15:32:32 2006 (2 yr ago)
Created Thu Dec 1 01:21:36 2005 (3 yr ago)

Transaction History Ticket 3874


Thu, Dec 1 2005 01:21:36    Request created by guest  
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.
Sun, Jul 23 2006 22:05:56    Mail sent by msieczka  
guest wrote (Thu, Dec 1 2005 01:21:36):

> 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 @@

(the patch follows)

Dear devs,

Has this patch been ever applied?

Maciek
Wed, Jul 26 2006 15:32:32    Mail sent by stephane.bidet@tremplin-utc.net  
Return-Path <stephane.bidet@tremplin-utc.net>
Delivered-To grass-bugs@lists.intevation.de
Date Wed, 26 Jul 2006 15:32:27 +0200 (CEST)
From =?ISO-8859-1?Q?St=E9phane_Bidet?= <stephane.bidet@tremplin-utc.net>
X-X-Sender bidetste@vega.utc.fr
To Maciek Sieczka via RT <grass-bugs@intevation.de>
Cc stephane.bidet@tremplin-utc.net, grass-dev@grass.itc.it, bcovill@tekmap.ns.ca
Subject Re: [bug #3874] (grass) Strange comportment of NVIZ after adding a surface.
In-Reply-To <20060723200556.EB5A51005B8@lists.intevation.de>
Message-ID <Pine.OSF.4.64.0607261523000.135599@vega.utc.fr>
References <20060723200556.EB5A51005B8@lists.intevation.de>
MIME-Version 1.0
Content-Type MULTIPART/MIXED; BOUNDARY="698110915-872100361-1153920747=:135599"
X-Virus-Scanned by amavisd-new at intevation.de
X-Spam-Status No, hits=-5 tagged_above=-999 required=3 tests=[BAYES_00=-5]
X-Spam-Level
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

--698110915-872100361-1153920747=:135599
Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8BIT

>> --- 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 @@
> Has this patch been ever applied?

No, I don't think so.

I've done two bug reports for this problem and each time I 
submitted this patch but nobody had answered. Thus I 
thought that this bug had been already fixed.

Stéphane.

-- 
Stéphane Bidet <stephane.bidet@tremplin-utc.net>
--698110915-872100361-1153920747=:135599--


Comment | Reply | Take | Resolve

You are currently authenticated as guest.
[Show Configuration] [Login as another user]

Users Guide - Mail Commands - Homepage of RequestTracker 1.0.7 - list any request