Ignore:
Timestamp:
Jan 18, 2015, 12:56:32 PM (10 years ago)
Author:
ldelgass
Message:

merge r4927 from 1.3 branch (fix 1D cloud+field)

Location:
branches/1.4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/1.4

  • branches/1.4/gui/scripts/field.tcl

    r4790 r4941  
    15231523    }
    15241524
    1525     if {$_dim == 1} {
     1525    if {$_dim < 2} {
     1526        puts stderr "ERROR: Can't convert 1D cloud/mesh to curve.  Please use curve output for 1D meshes."
     1527        return 0
     1528
    15261529        # 1D data: Create vectors for graph widget.
    1527         # Is this used anywhere?
    1528         #
    1529         # OOPS!  This is 1D data
    1530         # Forget the cloud/field -- store BLT vectors
     1530        # The prophet tool currently outputs 1D clouds with fields
     1531        # Band Structure Lab used to (see isosurface1 test in rappture-bat)
    15311532        #
    15321533        # Is there a natural growth path in generating output from 1D to
     
    15361537        # to the <field>.
    15371538        #
    1538         set xv [blt::vector create x$_counter]
    1539         set yv [blt::vector create y$_counter]
    1540        
    1541         $yv set [$mesh points]
    1542         $xv seq 0 1 [$yv length]
    1543         # sort x-coords in increasing order
    1544         $xv sort $yv
    1545         set _comp2dims($cname) "1D"
    1546         set _comp2xy($cname) [list $xv $yv]
    1547         incr _counter
    1548         return 1
     1539        #set xv [blt::vector create x$_counter]
     1540        #set yv [blt::vector create y$_counter]
     1541
     1542        # This only works with a Cloud mesh type, since the points method
     1543        # is not implemented for the Mesh object
     1544        #$xv set [$mesh points]
     1545        # TODO: Put field values in yv
     1546        #set _comp2dims($cname) "1D"
     1547        #set _comp2xy($cname) [list $xv $yv]
     1548        #incr _counter
     1549        #return 1
    15491550    }
    15501551    if {$_dim == 2} {
Note: See TracChangeset for help on using the changeset viewer.