Changeset 2353 for trunk/gui/scripts/unirect2d.tcl
- Timestamp:
- Aug 13, 2011, 7:15:14 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/unirect2d.tcl
r2144 r2353 147 147 set dx [expr {($_xMax - $_xMin) / double($_xNum)}] 148 148 set dy [expr {($_yMax - $_yMin) / double($_yNum)}] 149 for { set i 0 } { $i < $_xNum } { incr i } { 149 foreach {a b} $_axisOrder break 150 for { set i 0 } { $i < [set _${a}Num] } { incr i } { 150 151 set x [expr {$_xMin + (double($i) * $dx)}] 151 for { set j 0 } { $j < $_yNum} { incr j } {152 for { set j 0 } { $j < [set _${b}Num] } { incr j } { 152 153 set y [expr {$_yMin + (double($i) * $dy)}] 153 154 lappend data $x $y
Note: See TracChangeset
for help on using the changeset viewer.