Ignore:
Timestamp:
Feb 22, 2013, 4:28:34 PM (11 years ago)
Author:
gah
Message:

mesh cleanup for curvilinear grid

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Rappture 1.2/gui/scripts/mesh.tcl

    r3318 r3323  
    7171    private variable _yv        ""
    7272    private variable _zv        ""
    73     private variable _bltmesh   ""
    7473    private variable _xCoords   "";     # For the blt contour only
    7574    private variable _yCoords   "";     # For the blt contour only
     
    233232        rename $_points ""
    234233    }
    235     if { $_bltmesh != "" } {
    236         blt::mesh destroy $_bltmesh
    237     }
    238234}
    239235
     
    310306        "vtk" {
    311307            return $_vtkgrid
    312         }
    313         "blt" {
    314             return $_bltmesh
    315308        }
    316309        default {
     
    532525            error "curvilinear grid must be 2D or 3D."
    533526        }
    534         set data [$xmlobj get $path.grid.points]
     527        set points [$xmlobj get $path.grid.points]
    535528        if { $points == "" } {
    536529            error "missing <points> from grid description."
     
    547540        if { [info exists zNum] } {
    548541            set _dim 3
    549             set _numPoints [expr $xNum * $yNum * zNum]
     542            set _numPoints [expr $xNum * $yNum * $zNum]
    550543            $all set $points
    551544            if { ($_numPoints*3) != $numCoords } {
     
    557550            $all split $xv $yv $zv
    558551            foreach axis {x y z} {
    559                 set vector ${axis}v
     552                set vector [set ${axis}v]
    560553                set _limits($axis) [$vector limits]
    561554            }
     
    576569            }
    577570            foreach axis {x y} {
    578                 set vector ${axis}v
     571                set vector [set ${axis}v]
    579572                set _limits($axis) [$vector limits]
    580573            }
Note: See TracChangeset for help on using the changeset viewer.