[GRASS-SVN] r35146 - grass/trunk/visualization/nviz/scripts

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Jan 1 12:45:43 EST 2009


Author: cmbarton
Date: 2009-01-01 12:45:42 -0500 (Thu, 01 Jan 2009)
New Revision: 35146

Modified:
   grass/trunk/visualization/nviz/scripts/widgets.tcl
Log:
Fix to permit 3D points to be loaded from the command line without first loading a surface.

Modified: grass/trunk/visualization/nviz/scripts/widgets.tcl
===================================================================
--- grass/trunk/visualization/nviz/scripts/widgets.tcl	2009-01-01 17:44:32 UTC (rev 35145)
+++ grass/trunk/visualization/nviz/scripts/widgets.tcl	2009-01-01 17:45:42 UTC (rev 35146)
@@ -324,6 +324,19 @@
 		set text_side left
 		set orient h
 	}
+    
+    # permits loading of 3D points without surface
+    if {$name == "height" && $curr == inf} {
+        set from 10000
+        set to 0
+        set curr 5000
+    }
+    if {$name == "z-exag" && $from == 0.0 && $to == 0.0 && $curr == 0.0 } {
+        set from 10.0 
+        set to 0.0 
+        set curr 1.000000
+    }
+        
 	#calculate number length for digits var
 	set num [llength [split [expr int($curr * 1)] ""]]
 	if {$num == 1} {



More information about the grass-commit mailing list