Changeset 4927


Ignore:
Timestamp:
Jan 14, 2015 2:31:15 PM (9 years ago)
Author:
ldelgass
Message:

Disable incorrect/incomplete code to send 1D cloud+field to the XY viewer.
Instead print an error message for tool developers to use the curve output
instead.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.3/gui/scripts/field.tcl

    r4790 r4927  
    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.