Changeset 3323 for branches/Rappture 1.2/gui/scripts/mesh.tcl
- Timestamp:
- Feb 22, 2013, 4:28:34 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Rappture 1.2/gui/scripts/mesh.tcl
r3318 r3323 71 71 private variable _yv "" 72 72 private variable _zv "" 73 private variable _bltmesh ""74 73 private variable _xCoords ""; # For the blt contour only 75 74 private variable _yCoords ""; # For the blt contour only … … 233 232 rename $_points "" 234 233 } 235 if { $_bltmesh != "" } {236 blt::mesh destroy $_bltmesh237 }238 234 } 239 235 … … 310 306 "vtk" { 311 307 return $_vtkgrid 312 }313 "blt" {314 return $_bltmesh315 308 } 316 309 default { … … 532 525 error "curvilinear grid must be 2D or 3D." 533 526 } 534 set data[$xmlobj get $path.grid.points]527 set points [$xmlobj get $path.grid.points] 535 528 if { $points == "" } { 536 529 error "missing <points> from grid description." … … 547 540 if { [info exists zNum] } { 548 541 set _dim 3 549 set _numPoints [expr $xNum * $yNum * zNum]542 set _numPoints [expr $xNum * $yNum * $zNum] 550 543 $all set $points 551 544 if { ($_numPoints*3) != $numCoords } { … … 557 550 $all split $xv $yv $zv 558 551 foreach axis {x y z} { 559 set vector ${axis}v552 set vector [set ${axis}v] 560 553 set _limits($axis) [$vector limits] 561 554 } … … 576 569 } 577 570 foreach axis {x y} { 578 set vector ${axis}v571 set vector [set ${axis}v] 579 572 set _limits($axis) [$vector limits] 580 573 }
Note: See TracChangeset
for help on using the changeset viewer.