Changeset 4506 for trunk/gui/scripts
- Timestamp:
- Jul 16, 2014, 1:01:57 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/vtkviewer.tcl
r4465 r4506 743 743 } 744 744 array set bounds [limits $dataobj] 745 if { ![info exists _limits(xmin)] || $_limits(xmin) > $bounds(xmin)} {745 if {[info exists bounds(xmin)] && (![info exists _limits(xmin)] || $_limits(xmin) > $bounds(xmin))} { 746 746 set _limits(xmin) $bounds(xmin) 747 747 } 748 if { ![info exists _limits(xmax)] || $_limits(xmax) < $bounds(xmax)} {748 if {[info exists bounds(xmax)] && (![info exists _limits(xmax)] || $_limits(xmax) < $bounds(xmax))} { 749 749 set _limits(xmax) $bounds(xmax) 750 750 } 751 751 752 if { ![info exists _limits(ymin)] || $_limits(ymin) > $bounds(ymin)} {752 if {[info exists bounds(ymin)] && (![info exists _limits(ymin)] || $_limits(ymin) > $bounds(ymin))} { 753 753 set _limits(ymin) $bounds(ymin) 754 754 } 755 if { ![info exists _limits(ymax)] || $_limits(ymax) < $bounds(ymax)} {755 if {[info exists bounds(ymax)] && (![info exists _limits(ymax)] || $_limits(ymax) < $bounds(ymax))} { 756 756 set _limits(ymax) $bounds(ymax) 757 757 } 758 758 759 if { ![info exists _limits(zmin)] || $_limits(zmin) > $bounds(zmin)} {759 if {[info exists bounds(zmin)] && (![info exists _limits(zmin)] || $_limits(zmin) > $bounds(zmin))} { 760 760 set _limits(zmin) $bounds(zmin) 761 761 } 762 if { ![info exists _limits(zmax)] || $_limits(zmax) < $bounds(zmax)} {762 if {[info exists bounds(zmax)] && (![info exists _limits(zmax)] || $_limits(zmax) < $bounds(zmax))} { 763 763 set _limits(zmax) $bounds(zmax) 764 764 } … … 1909 1909 file delete $tmpfile 1910 1910 set output [$reader GetOutput] 1911 if { $output == "" } { 1912 # Invalid VTK file -- loader failed to parse 1913 continue 1914 } 1911 1915 set _limits($tag) [$output GetBounds] 1912 1916 if {$debug} {
Note: See TracChangeset
for help on using the changeset viewer.