Ignore:
Timestamp:
Nov 17, 2008, 2:20:16 PM (16 years ago)
Author:
gah
Message:

Improve data read speed of curve object with vectors; Add pan and scrollwheel features to 3d viewers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/field.tcl

    r1189 r1220  
    574574                    set xv [blt::vector create x$_counter]
    575575                    set yv [blt::vector create y$_counter]
    576 
    577                     foreach line [split $xydata \n] {
    578                         if {[scan $line {%g %g} xval yval] == 2} {
    579                             $xv append $xval
    580                             $yv append $yval
    581                         }
    582                     }
     576                    set tmp [blt::vector create \#auto]
     577                    $tmp set $xydata
     578                    $tmp split $xv $yv
     579                    blt::vector destroy $tmp
    583580                }
    584581            }
Note: See TracChangeset for help on using the changeset viewer.