- Timestamp:
- Jan 20, 2014 5:45:13 PM (10 years ago)
- Location:
- trunk/gui/scripts
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/mesh.tcl
r4138 r4140 277 277 # 278 278 itcl::body Rappture::Mesh::label { axis } { 279 if { ![info exists axis2label($axis)] } {279 if { ![info exists _axis2labels($axis)] } { 280 280 return "" 281 281 } 282 return $ axis2label($axis)282 return $_axis2labels($axis) 283 283 } 284 284 -
trunk/gui/scripts/vtkmeshviewer.tcl
r4136 r4140 891 891 892 892 foreach axis { x y z } { 893 set label [$_first hints ${axis}label]893 set label [$_first label ${axis}] 894 894 if { $label != "" } { 895 895 SendCmd "axis name $axis $label" 896 896 } 897 set units [$_first hints ${axis}units]897 set units [$_first units ${axis}] 898 898 if { $units != "" } { 899 899 SendCmd "axis units $axis $units" … … 1720 1720 set tag $dataobj 1721 1721 set type [$dataobj type] 1722 # set style [$dataobj style]1722 set color [$dataobj hints color] 1723 1723 if { $dataobj != $_first } { 1724 1724 set settings(-wireframe) 1 … … 1737 1737 } 1738 1738 # array set settings $style 1739 if {$color != ""} { 1740 set settings(-color) $color 1741 } 1739 1742 if {$type == "cloud"} { 1740 1743 set settings(-cloudstyle) points 1741 1744 set settings(-edges) 0 1745 set settings(-edgecolor) white 1742 1746 } 1743 1747 SendCmd "polydata add $tag"
Note: See TracChangeset
for help on using the changeset viewer.