Ignore:
Timestamp:
Mar 10, 2011 7:22:47 AM (13 years ago)
Author:
gah
Message:

Fixed mesh to *not* interpolate grid values. Used in vtkcontourviewer.

File:
1 edited

Legend:

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

    r1929 r2128  
    2424    public method limits {axis}
    2525    public method blob {}
     26    public method mesh.old {}
    2627    public method mesh {}
    2728    public method values {}
     
    137138
    138139# ----------------------------------------------------------------------
    139 # method mesh
    140 #       Returns a base64 encoded, gzipped Tcl list that represents the
    141 #       Tcl command and data to recreate the uniform rectangular grid
    142 #       on the nanovis server.
    143 # ----------------------------------------------------------------------
    144 itcl::body Rappture::Unirect2d::mesh {} {
     140# method mesh.old
     141#       Returns a base64 encoded, gzipped Tcl list that represents the
     142#       Tcl command and data to recreate the uniform rectangular grid
     143#       on the nanovis server.
     144# ----------------------------------------------------------------------
     145itcl::body Rappture::Unirect2d::mesh.old {} {
    145146    set dx [expr {($_xMax - $_xMin) / double($_xNum)}]
    146147    set dy [expr {($_yMax - $_yMin) / double($_yNum)}]
     
    153154    }
    154155    return $data
     156}
     157
     158# ----------------------------------------------------------------------
     159# method mesh
     160#       Returns a base64 encoded, gzipped Tcl list that represents the
     161#       Tcl command and data to recreate the uniform rectangular grid
     162#       on the nanovis server.
     163# ----------------------------------------------------------------------
     164itcl::body Rappture::Unirect2d::mesh {} {
     165    lappend out $_xMin $_xMax $_xNum $_yMin $_yMax $_yNum
     166    return $out
    155167}
    156168
Note: See TracChangeset for help on using the changeset viewer.