Changeset 3323 for branches


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

mesh cleanup for curvilinear grid

Location:
branches/Rappture 1.2/gui/scripts
Files:
4 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            }
  • branches/Rappture 1.2/gui/scripts/visviewer.tcl

    r3322 r3323  
    7272    private method SendDebugCommand {}
    7373
    74     protected method ReceiveError { args }
    75     protected method SendEcho { channel {data ""} }
    76     protected method ReceiveEcho { channel {data ""} }
     74    protected method Color2RGB { color }
    7775    protected method Connect { servers }
    7876    protected method Disconnect {}
     77    protected method Euler2XYZ { theta phi psi }
     78    protected method Flush {}
    7979    protected method IsConnected {}
     80    protected method ReceiveBytes { nbytes }
     81    protected method ReceiveEcho { channel {data ""} }
     82    protected method ReceiveError { args }
    8083    protected method SendBytes { bytes }
    81     protected method ReceiveBytes { nbytes }
    82     protected method Flush {}
    83     protected method Color2RGB { color }
    84     protected method Euler2XYZ { theta phi psi }
     84    protected method SendEcho { channel {data ""} }
    8585    protected method StartWaiting {}
    8686    protected method StopWaiting {}
    87     protected method ReceiveError { args }
    8887
    8988    private method Waiting { option widget }
  • branches/Rappture 1.2/gui/scripts/vtkheightmapviewer.tcl

    r3319 r3323  
    951951            if { ![info exists _datasets($tag)] } {
    952952                set bytes [$dataobj vtkdata $comp]
    953                 if 1 {
     953                if 0 {
    954954                set f [open /tmp/vtkheightmap.vtk "w"]
    955955                puts $f $bytes
  • branches/Rappture 1.2/gui/scripts/vtkviewer.tcl

    r3321 r3323  
    183183    # Populate parser with commands handle incoming requests
    184184    #
    185     $_parser alias image [itcl::code $this ReceiveImage]
    186     $_parser alias dataset [itcl::code $this ReceiveDataset]
    187     $_parser alias legend [itcl::code $this ReceiveLegend]
     185    $_parser alias image    [itcl::code $this ReceiveImage]
     186    $_parser alias dataset  [itcl::code $this ReceiveDataset]
     187    $_parser alias legend   [itcl::code $this ReceiveLegend]
    188188    $_parser alias viserror [itcl::code $this ReceiveError]
    189189
Note: See TracChangeset for help on using the changeset viewer.