[GRASS5] nviz script

Helena Mitasova hmitaso at unity.ncsu.edu
Fri Jul 27 15:03:03 EDT 2001


>

We have just installed GRASS5.00pre1 and it seems that that the nviz start-up
script was removed (or never put into release) and
nviz is called by nviz2.2 (and path must be given first). The script worked well
and was more convenient
than the old nviz2.2, I was wondering why it was removed. It was not the cause of
the crashes that I still
have (both when running nviz2.2 and nviz) and it seems that it is more LINUX7.1
problem rather than GRASS.
I believe that the script should be put back - or am I just confusing this release
with the newer CVS version?

thanks,

Helena

P.S. Just in case that somebody gets nviz crashing his machine randomly we have
found that it is happening somewhere
in the following part of the code (Bill things that it is togl, but I don't
understand these things at all). I am suspicious that it is
not a GRASS problem because nobody else seems to have that problem, but it happens
under various window managers
(KDE, GNOME Sawfish and Enlightment and so far only under LINUX7.1).

NVIZ2.2/scripts/nviz2.2_script

puts "toplevel made"

    ###########################################################################
    # make informational text widget
    ###########################################################################

    set Nv_(text) "Start"
    entry $BASE.entry -relief sunken -borderwidth 3 -state disabled \
        -textvariable Nv_(text)
    place $BASE.entry -relx 0 -relwidth .70 -rely 0
##  glxwin $BASE.canvas -rgb true -db true -zbuffersize -1
    togl $BASE.canvas -rgba true -double true -depth true
    place $BASE.canvas -relx .01 -rely .03 -relwidth .98 -relheight .97

    bind $BASE.canvas <Expose> {Nv_expose %W}
    bind $BASE.canvas <Configure> {set Nv_(height) %h}
##  bind $BASE.canvas <Configure> {if [%W islinked] {glx_viewport %w %h; \
                                                         set Nv_(height) %h}}
    update

# DEBUG
puts "info widget made"





More information about the grass-dev mailing list