Changeset 95 for trunk/gui/scripts/mesh.tcl
- Timestamp:
- Oct 9, 2005 9:41:29 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/mesh.tcl
r17 r95 35 35 private variable _mesh "" ;# lib obj representing this mesh 36 36 37 private variable _units "m " ;# system of units for this mesh38 private variable _limits ;# limits xmin, xmax, ymin, ymax, ...37 private variable _units "m m m" ;# system of units for x, y, z 38 private variable _limits ;# limits xmin, xmax, ymin, ymax, ... 39 39 40 40 private common _xp2obj ;# used for fetch/release ref counting … … 101 101 set u [$_mesh get units] 102 102 if {"" != $u} { 103 while {[llength $u] < 3} { 104 lappend u [lindex $u end] 105 } 103 106 set _units $u 104 107 } … … 126 129 # extract each point and add it to the points list 127 130 foreach {x y z} $xyz break 128 foreach dim {x y z} {131 foreach dim {x y z} units $_units { 129 132 set v [Rappture::Units::convert [set $dim] \ 130 -context $ _units -to $_units -units off]133 -context $units -to $units -units off] 131 134 132 135 set $dim $v ;# save back to real x/y/z variable
Note: See TracChangeset
for help on using the changeset viewer.