[GRASS-SVN] r51544 - grass-addons/grass6/raster/r.vol.dem

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Apr 25 08:43:16 EDT 2012


Author: neteler
Date: 2012-04-25 05:43:16 -0700 (Wed, 25 Apr 2012)
New Revision: 51544

Modified:
   grass-addons/grass6/raster/r.vol.dem/description.html
   grass-addons/grass6/raster/r.vol.dem/main.c
Log:
keep VTK file size under control

Modified: grass-addons/grass6/raster/r.vol.dem/description.html
===================================================================
--- grass-addons/grass6/raster/r.vol.dem/description.html	2012-04-25 12:42:55 UTC (rev 51543)
+++ grass-addons/grass6/raster/r.vol.dem/description.html	2012-04-25 12:43:16 UTC (rev 51544)
@@ -73,7 +73,8 @@
 option reflects the fact that the visualisation program ParaView which
 treats cell data and point data differently in comparison to the program
 GRASS GIS. Hence, if one wants to visualise GRASS voxel in ParaView, this
-flag is recommended.
+flag is recommended. The VTK floating point precision is 1/1000 of the
+current GRASS location's map unit.
 <p>
 The <em>-q</em> flag disables on-screen progress display:
 This option does not yet work. 

Modified: grass-addons/grass6/raster/r.vol.dem/main.c
===================================================================
--- grass-addons/grass6/raster/r.vol.dem/main.c	2012-04-25 12:42:55 UTC (rev 51543)
+++ grass-addons/grass6/raster/r.vol.dem/main.c	2012-04-25 12:43:16 UTC (rev 51544)
@@ -1115,12 +1115,12 @@
 		    parm.output->answer);
 
 	if (flag.points->answer) {
-	    sprintf(sys, "r3.out.vtk -p in=%s out=%s.vtk null=%f",
+	    sprintf(sys, "r3.out.vtk -p in=%s out=%s.vtk null=%f dp=3",
 		    parm.output->answer, parm.output->answer, DNULLVALUE);
 
 	}
 	else {
-	    sprintf(sys, "r3.out.vtk in=%s out=%s.vtk null=%f",
+	    sprintf(sys, "r3.out.vtk in=%s out=%s.vtk null=%f dp=3",
 		    parm.output->answer, parm.output->answer, DNULLVALUE);
 	}
 	if (DEBUG > 0) {



More information about the grass-commit mailing list