[GRASS-SVN] r46728 - in grass/trunk: include lib/g3d lib/g3d/test raster/r.to.rast3 raster/r.to.rast3elev raster3d raster3d/base raster3d/r3.cross.rast raster3d/r3.in.ascii raster3d/r3.out.ascii raster3d/r3.out.vtk raster3d/r3.to.rast vector/v.to.rast3 vector/v.vol.rst

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Jun 17 16:10:37 EDT 2011


Author: huhabla
Date: 2011-06-17 13:10:37 -0700 (Fri, 17 Jun 2011)
New Revision: 46728

Modified:
   grass/trunk/include/G3d.h
   grass/trunk/lib/g3d/g3dgetvalue.c
   grass/trunk/lib/g3d/g3dregion.c
   grass/trunk/lib/g3d/g3dresample.c
   grass/trunk/lib/g3d/g3dwindow.c
   grass/trunk/lib/g3d/test/test_coordinate_transform.c
   grass/trunk/lib/g3d/test/test_main.c
   grass/trunk/lib/g3d/test/test_put_get_value.c
   grass/trunk/raster/r.to.rast3/main.c
   grass/trunk/raster/r.to.rast3elev/main.c
   grass/trunk/raster3d/base/r3.mask.main.c
   grass/trunk/raster3d/r3.cross.rast/test.r3.cross.rast.sh
   grass/trunk/raster3d/r3.cross.rast/test_cross_section_result.ref
   grass/trunk/raster3d/r3.cross.rast/test_cross_section_slice_0.ref
   grass/trunk/raster3d/r3.cross.rast/test_cross_section_slice_1.ref
   grass/trunk/raster3d/r3.cross.rast/test_cross_section_slice_2.ref
   grass/trunk/raster3d/r3.cross.rast/test_cross_section_slice_3.ref
   grass/trunk/raster3d/r3.cross.rast/test_cross_section_slice_4.ref
   grass/trunk/raster3d/r3.cross.rast/test_cross_section_slice_5.ref
   grass/trunk/raster3d/r3.in.ascii/main.c
   grass/trunk/raster3d/r3.in.ascii/r3.in.ascii.html
   grass/trunk/raster3d/r3.out.ascii/main.c
   grass/trunk/raster3d/r3.out.ascii/test.r3.out.ascii.sh
   grass/trunk/raster3d/r3.out.ascii/test_double_nsbt_null.ref
   grass/trunk/raster3d/r3.out.ascii/test_double_nsbt_null_grass6_comp_1.ref
   grass/trunk/raster3d/r3.out.ascii/test_double_nsbt_null_grass6_comp_2.ref
   grass/trunk/raster3d/r3.out.ascii/test_double_nsbt_null_grass6_comp_3.ref
   grass/trunk/raster3d/r3.out.ascii/test_double_nsbt_null_no_header.ref
   grass/trunk/raster3d/r3.out.ascii/test_double_nsbt_null_prec5.ref
   grass/trunk/raster3d/r3.out.ascii/test_double_nstb_null.ref
   grass/trunk/raster3d/r3.out.ascii/test_double_snbt_null.ref
   grass/trunk/raster3d/r3.out.ascii/test_double_sntb_null.ref
   grass/trunk/raster3d/r3.out.ascii/test_double_sntb_null_prec8.ref
   grass/trunk/raster3d/r3.out.ascii/test_float_nsbt_null.ref
   grass/trunk/raster3d/r3.out.ascii/test_float_nsbt_null_grass6_comp_1.ref
   grass/trunk/raster3d/r3.out.ascii/test_float_nsbt_null_grass6_comp_2.ref
   grass/trunk/raster3d/r3.out.ascii/test_float_nsbt_null_grass6_comp_3.ref
   grass/trunk/raster3d/r3.out.ascii/test_float_nsbt_null_no_header.ref
   grass/trunk/raster3d/r3.out.ascii/test_float_nsbt_null_prec5.ref
   grass/trunk/raster3d/r3.out.ascii/test_float_nstb_null.ref
   grass/trunk/raster3d/r3.out.ascii/test_float_snbt_null.ref
   grass/trunk/raster3d/r3.out.ascii/test_float_sntb_null.ref
   grass/trunk/raster3d/r3.out.ascii/test_float_sntb_null_prec8.ref
   grass/trunk/raster3d/r3.out.vtk/main.c
   grass/trunk/raster3d/r3.out.vtk/test.r3.out.vtk.sh
   grass/trunk/raster3d/r3.out.vtk/test_volume_null_1_cells.ref
   grass/trunk/raster3d/r3.out.vtk/test_volume_null_1_cells_elevation.ref
   grass/trunk/raster3d/r3.out.vtk/test_volume_null_1_cells_rgb_vect.ref
   grass/trunk/raster3d/r3.out.vtk/test_volume_null_1_points.ref
   grass/trunk/raster3d/r3.out.vtk/test_volume_null_1_points_elevation.ref
   grass/trunk/raster3d/r3.out.vtk/test_volume_null_1_points_rgb_vect.ref
   grass/trunk/raster3d/r3.out.vtk/writeVTKData.c
   grass/trunk/raster3d/r3.to.rast/main.c
   grass/trunk/raster3d/r3.to.rast/test.r3.to.rast.sh
   grass/trunk/raster3d/r3.to.rast/test_raster_slice_1_00001.ref
   grass/trunk/raster3d/r3.to.rast/test_raster_slice_1_00002.ref
   grass/trunk/raster3d/r3.to.rast/test_raster_slice_1_00003.ref
   grass/trunk/raster3d/r3.to.rast/test_raster_slice_1_00004.ref
   grass/trunk/raster3d/r3.to.rast/test_raster_slice_1_00005.ref
   grass/trunk/raster3d/r3.to.rast/test_raster_slice_2_00001.ref
   grass/trunk/raster3d/r3.to.rast/test_raster_slice_2_00002.ref
   grass/trunk/raster3d/r3.to.rast/test_raster_slice_2_00003.ref
   grass/trunk/raster3d/r3.to.rast/test_raster_slice_2_00004.ref
   grass/trunk/raster3d/r3.to.rast/test_raster_slice_2_00005.ref
   grass/trunk/raster3d/r3.to.rast/test_raster_slice_3_00001.ref
   grass/trunk/raster3d/r3.to.rast/test_raster_slice_3_00002.ref
   grass/trunk/raster3d/r3.to.rast/test_raster_slice_3_00003.ref
   grass/trunk/raster3d/r3.to.rast/test_raster_slice_3_00004.ref
   grass/trunk/raster3d/r3.to.rast/test_raster_slice_3_00005.ref
   grass/trunk/raster3d/raster3dintro.html
   grass/trunk/vector/v.to.rast3/main.c
   grass/trunk/vector/v.vol.rst/user1.c
Log:
Major G3d libarary update. The G3D library and raster library use now the same coordinate system. Start is the upper left (NW) corner beginning at the bottom of the region. Several tests have been implemented to verify the correct behavior.

Modified: grass/trunk/include/G3d.h
===================================================================
--- grass/trunk/include/G3d.h	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/include/G3d.h	2011-06-17 20:10:37 UTC (rev 46728)
@@ -448,10 +448,10 @@
 void G3d_extract2dRegion(G3D_Region *, struct Cell_head *);
 void G3d_regionToCellHead(G3D_Region *, struct Cell_head *);
 int G3d_readRegionMap(const char *, const char *, G3D_Region *);
-int G3d_isValidLocation(G3D_Map *, double, double, double);
-void G3d_location2coord(G3D_Map *, double, double, double, int *, int *, int *);
-void G3d_location2coord2(G3D_Map *, double, double, double, int *, int *, int *);
-
+int G3d_isValidLocation(G3D_Region *, double, double, double);
+void G3d_location2coord(G3D_Region *, double, double, double, int *, int *, int *);
+void G3d_location2coord2(G3D_Region *, double, double, double, int *, int *, int *);
+void G3d_coord2location(G3D_Region *, double, double, double, double *, double *, double *);
 /* grass/src/libes/g3d/g3dresample.c */
 void G3d_nearestNeighbor(G3D_Map *, int, int, int, void *, int);
 void G3d_setResamplingFun(G3D_Map *, void (*)());
@@ -478,8 +478,6 @@
 void G3d_setWindow(G3D_Region *);
 void G3d_setWindowMap(G3D_Map *, G3D_Region *);
 void G3d_getWindow(G3D_Region *);
-void G3d_location2WindowCoord(G3D_Map *, double, double, double, int *, int *, int *);
-int G3d_isValidLocationWindow(G3D_Map *, double, double, double);
 
 /* grass/src/libes/g3d/g3dwindowio.c */
 void G3d_useWindowParams(void);

Modified: grass/trunk/lib/g3d/g3dgetvalue.c
===================================================================
--- grass/trunk/lib/g3d/g3dgetvalue.c	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/lib/g3d/g3dgetvalue.c	2011-06-17 20:10:37 UTC (rev 46728)
@@ -96,7 +96,7 @@
 {
     int col, row, depth;
 
-    G3d_location2WindowCoord(map, north, east, top, &col, &row, &depth);
+    G3d_location2coord(&(map->window), north, east, top, &col, &row, &depth);
 
     /* if (row, col, depth) outside window return NULL value */
     if ((row < 0) || (row >= map->window.rows) ||
@@ -133,7 +133,7 @@
 {
     int row, col, depth;
 
-    G3d_location2coord(map, north, east, top, &col, &row, &depth);
+    G3d_location2coord(&(map->region), north, east, top, &col, &row, &depth);
 
     /* if (row, col, depth) outside region return NULL value */
     if ((row < 0) || (row >= map->region.rows) ||

Modified: grass/trunk/lib/g3d/g3dregion.c
===================================================================
--- grass/trunk/lib/g3d/g3dregion.c	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/lib/g3d/g3dregion.c	2011-06-17 20:10:37 UTC (rev 46728)
@@ -238,19 +238,19 @@
  *  Returns 1 if region-coordinates <em>(north, west, bottom)</em> are
  * inside the region of <em>map</em>. Returns 0 otherwise.
  *
- *  \param map
+ *  \param REgion
  *  \param north
  *  \param east
  *  \param top
  *  \return int
  */
 
-int G3d_isValidLocation(G3D_Map * map, double north, double east, double top)
+int G3d_isValidLocation(G3D_Region *region, double north, double east, double top)
 {
-    return ((north >= map->region.south) && (north <= map->region.north) &&
-	    (east >= map->region.west) && (east <= map->region.east) &&
-	    (((top >= map->region.bottom) && (top <= map->region.top)) ||
-	     ((top <= map->region.bottom) && (top >= map->region.top))));
+    return ((north >= region->south) && (north <= region->north) &&
+	    (east >= region->west) && (east <= region->east) &&
+	    (((top >= region->bottom) && (top <= region->top)) ||
+	     ((top <= region->bottom) && (top >= region->top))));
 }
 
 /*---------------------------------------------------------------------------*/
@@ -272,24 +272,24 @@
  */
 
 void
-G3d_location2coord(G3D_Map * map, double north, double east, double top,
+G3d_location2coord(G3D_Region *region, double north, double east, double top,
 		   int *x, int *y, int *z)
 {
     double col, row, depth;
     
-    col = (east - map->region.west) / (map->region.east -
-				      map->region.west) * (double)(map->region.cols);
-    row = (north - map->region.south) / (map->region.north -
-					map->region.south) * (double)(map->region.rows);
-    depth = (top - map->region.bottom) / (map->region.top -
-				       map->region.bottom) * (double)(map->region.depths);
-    /*
-    printf("G3d_location2coord col %g row %g depth %g\n", col, row, depth);
-    */  
+    col = (east - region->west) / (region->east -
+				      region->west) * (double)(region->cols);
+    row = (north - region->south) / (region->north -
+					region->south) * (double)(region->rows);
+    depth = (top - region->bottom) / (region->top -
+				       region->bottom) * (double)(region->depths);
     
     *x = (int)col;
-    *y = (int)row;
+    /* Adjust row to start at the northern edge*/
+    *y = region->rows - (int)row - 1;
     *z = (int)depth;
+        
+    G_debug(4, "G3d_location2coord x %i y %i z %i\n", *x, *y, *z);
 }
 
 
@@ -311,11 +311,54 @@
  */
 
 void
-G3d_location2coord2(G3D_Map * map, double north, double east, double top,
+G3d_location2coord2(G3D_Region *region, double north, double east, double top,
 		   int *x, int *y, int *z)
 {
-    if (!G3d_isValidLocation(map, north, east, top))
+    if (!G3d_isValidLocation(region, north, east, top))
 	G3d_fatalError("G3d_location2coord2: location not in region");
 
-    G3d_location2coord(map, north, east, top, x, y, z);
+    G3d_location2coord(region, north, east, top, x, y, z);
 }
+
+/*!
+ * \brief 
+ *
+ *  Converts cell-coordinates <em>(x, y, z)</em> into region-coordinates 
+ * <em>(north, east, top)</em>. 
+ *
+ *  * <b>Note:</b> x, y and z is a double:
+ *  - x+0.0 will return the easting for the western edge of the column.
+ *  - x+0.5 will return the easting for the center of the column.
+ *  - x+1.0 will return the easting for the eastern edge of the column.
+ * 
+ *  - y+0.0 will return the northing for the northern edge of the row.
+ *  - y+0.5 will return the northing for the center of the row.
+ *  - y+1.0 will return the northing for the southern edge of the row.
+ * 
+ *  - z+0.0 will return the top for the lower edge of the depth.
+ *  - z+0.5 will return the top for the center of the depth.
+ *  - z+1.0 will return the top for the upper edge of the column.
+ *
+ * <b>Note:</b> The result is a <i>double</i>. Casting it to an
+ * <i>int</i> will give the column, row and depth number.
+ * 
+ * 
+ *  \param map
+ *  \param x
+ *  \param y
+ *  \param z
+ *  \param north
+ *  \param east
+ *  \param top
+ *  \return void
+ */
+
+void
+G3d_coord2location(G3D_Region * region, double x, double y, double z, double *north, double *east, double *top)
+{
+    *north = region->north - y * region->ns_res;
+    *east = region->west + x * region->ew_res;
+    *top = region->bottom + z * region->tb_res; 
+        
+    G_debug(4, "G3d_coord2location north %g east %g top %g\n", *north, *east, *top);
+}

Modified: grass/trunk/lib/g3d/g3dresample.c
===================================================================
--- grass/trunk/lib/g3d/g3dresample.c	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/lib/g3d/g3dresample.c	2011-06-17 20:10:37 UTC (rev 46728)
@@ -25,23 +25,15 @@
 G3d_nearestNeighbor(G3D_Map * map, int x, int y, int z, void *value,
 		    int type)
 {
-
     double north, east, top;
     int row, col, depth;
 
-    /* convert (x, y, z) into (north, east, top) */
+    /* convert (x, y, z) window coordinates into (north, east, top) */
+    G3d_coord2location(&(map->window), (double)x + 0.5, (double)y + 0.5, (double)z + 0.5, &north, &east, &top);
 
-	north = ((double)y + 0.5) / (double)map->window.rows *
-	(map->window.north - map->window.south) + map->window.south;
-    east = ((double)x + 0.5) / (double)map->window.cols *
-	(map->window.east - map->window.west) + map->window.west;
-    top = ((double)z + 0.5) / (double)map->window.depths *
-	(map->window.top - map->window.bottom) + map->window.bottom;
+    /* convert (north, east, top) into map region coordinates (row, col, depth) */
+    G3d_location2coord(&(map->region), north, east, top, &col, &row, &depth);
 
-    /* convert (north, east, top) into (row, col, depth) */
-
-    G3d_location2coord(map, north, east, top, &col, &row, &depth);
-
     /* if (row, col, depth) outside map region return NULL value */
     if ((row < 0) || (row >= map->region.rows) ||
 	(col < 0) || (col >= map->region.cols) ||

Modified: grass/trunk/lib/g3d/g3dwindow.c
===================================================================
--- grass/trunk/lib/g3d/g3dwindow.c	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/lib/g3d/g3dwindow.c	2011-06-17 20:10:37 UTC (rev 46728)
@@ -94,71 +94,3 @@
 	    (((top >= map->window.bottom) && (top <= map->window.top)) ||
 	     ((top <= map->window.bottom) && (top >= map->window.top))));
 }
-
-/*---------------------------------------------------------------------------*/
-
-
-/*!
- * \brief 
- *
- *  Converts window-coordinates <em>(north, east,
- *  top)</em> into cell-coordinates <em>(x, y, z)</em>.
- *
- *  \param map
- *  \param north
- *  \param east
- *  \param top
- *  \param x
- *  \param y
- *  \param z
- *  \return void
- */
-
-void
-G3d_location2WindowCoord(G3D_Map * map, double north, double east, double top,
-		   int *x, int *y, int *z)
-{
-    double col, row, depth;
-    
-    col = (east - map->window.west) / (map->window.east -
-				      map->window.west) * (double)(map->window.cols);
-    row = (north - map->window.south) / (map->window.north -
-					map->window.south) * (double)(map->window.rows);
-    depth = (top - map->window.bottom) / (map->window.top -
-				       map->window.bottom) * (double)(map->window.depths);
-    /*
-    printf("G3d_location2WindowCoord col %g row %g depth %g\n", col, row, depth);
-    */
-    
-    *x = (int)col;
-    *y = (int)row;
-    *z = (int)depth;
-    
-}
-
-/*!
- * \brief 
- *
- *  Converts window-coordinates <em>(north, east,
- *  top)</em> into cell-coordinates <em>(x, y, z)</em>.
- *  This function calls G3d_fatalError in case location is not in window.
- *
- *  \param map
- *  \param north
- *  \param east
- *  \param top
- *  \param x
- *  \param y
- *  \param z
- *  \return void
- */
-
-void
-G3d_location2WindowCoord2(G3D_Map * map, double north, double east, double top,
-		   int *x, int *y, int *z)
-{
-    if (!G3d_isValidLocationWindow(map, north, east, top))
-	G3d_fatalError("G3d_location2WindowCoord2: location not in window");
-    
-    G3d_location2WindowCoord(map, north, east, top, x, y, z);
-}

Modified: grass/trunk/lib/g3d/test/test_coordinate_transform.c
===================================================================
--- grass/trunk/lib/g3d/test/test_coordinate_transform.c	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/lib/g3d/test/test_coordinate_transform.c	2011-06-17 20:10:37 UTC (rev 46728)
@@ -61,13 +61,13 @@
     /* The window is the same as the map region ... of course */
     G3d_setWindowMap(map, &region);
     
-    G_message("Test the upper right corner, coordinates must be col = 9, row = 14, depth = 4");
+    G_message("Test the upper right corner, coordinates must be col = 9, row = 0, depth = 4");
     
     /*
      ROWS
   1000 1500 2000 2500 3000 3500 4000 4500 5000 5500 6500 7000 7500 8000 8500 9000
     |....|....|....|....|....|....|....|....|....|....|....|....|....|....|....|                         
-    0    1    2    3    4    5    6    7    8    9   10   11   12   13   14   15
+   15   14   13   12   11   10    9    8    7    6    5    4    3    2    1    0
           
     COLS
   5000 5500 6000 6500 7000 7500 8000 8500 9000 9500 10000
@@ -83,40 +83,26 @@
     east=  9999.9;
     top =  999.9;
         
-    G3d_location2coord(map, north, east, top, &col, &row, &depth);    
+    G3d_location2coord(&(map->region), north, east, top, &col, &row, &depth);    
     printf("G3d_location2coord col %i row %i depth %i\n", col, row, depth);
-    if(region.cols - 1 != col || region.rows - 1 != row || region.depths - 1 != depth) {
+    if(region.cols - 1 != col || 0 != row || region.depths - 1 != depth) {
         G_message("Error in G3d_location2coord");
         sum++;
     }
     
-    G3d_location2WindowCoord(map, north, east, top, &col, &row, &depth);
-    printf("G3d_location2WindowCoord col %i row %i depth %i\n", col, row, depth);
-    if(region.cols - 1 != col || region.rows - 1 != row || region.depths - 1 != depth) {
-        G_message("Error in G3d_location2WindowCoord");
-        sum++;
-    }
+    G_message("Test the lower left corner, coordinates must be col = 0 row = 14 depth = 0");
     
-    G_message("Test the lower left corner, coordinates must be col = row = depth = 0");
-    
     north = 1000.0;
     east= 5000.0;
     top = 0.0;
         
-    G3d_location2coord(map, north, east, top, &col, &row, &depth);    
+    G3d_location2coord(&(map->region), north, east, top, &col, &row, &depth);    
     printf("G3d_location2coord col %i row %i depth %i\n", col, row, depth);
-    if(0 != col || 0 != row || 0 != depth) {
+    if(0 != col || 14 != row || 0 != depth) {
         G_message("Error in G3d_location2coord");
         sum++;
     }
     
-    G3d_location2WindowCoord(map, north, east, top, &col, &row, &depth);
-    printf("G3d_location2WindowCoord col %i row %i depth %i\n", col, row, depth);
-    if(0 != col || 0 != row || 0 != depth) {
-        G_message("Error in G3d_location2WindowCoord");
-        sum++;
-    }
-    
     G_message("Test the center, coordinates must be col = 4 row = 7 depth = 2");
     
     
@@ -124,60 +110,39 @@
     east= 7499.9;
     top = 500.0;
         
-    G3d_location2coord(map, north, east, top, &col, &row, &depth);    
+    G3d_location2coord(&(map->region), north, east, top, &col, &row, &depth);    
     printf("G3d_location2coord col %i row %i depth %i\n", col, row, depth);
     if((region.cols - 1)/2 != col || (region.rows - 1)/2 != row || (region.depths - 1)/2 != depth) {
         G_message("Error in G3d_location2coord");
         sum++;
     }
     
-    G3d_location2WindowCoord(map, north, east, top, &col, &row, &depth);
-    printf("G3d_location2WindowCoord col %i row %i depth %i\n", col, row, depth);
-    if((region.cols - 1)/2 != col || (region.rows - 1)/2 != row || (region.depths - 1)/2 != depth) {
-        G_message("Error in G3d_location2WindowCoord");
-        sum++;
-    }
+    G_message("Test the n=3000.1, e=7000.1 and t=800.1, coordinates must be col = 4 row = 10 depth = 4");
     
-    G_message("Test the n=3000.1, e=7000.1 and t=800.1, coordinates must be col = row = depth = 4");
-    
     north = 3000.1;
     east= 7000.1;
     top = 800.1;
         
-    G3d_location2coord(map, north, east, top, &col, &row, &depth);    
+    G3d_location2coord(&(map->region), north, east, top, &col, &row, &depth);    
     printf("G3d_location2coord col %i row %i depth %i\n", col, row, depth);
-    if(4 != col || 4 != row || 4 != depth) {
+    if(4 != col || map->region.rows - 5 != row || 4 != depth) {
         G_message("Error in G3d_location2coord");
         sum++;
     }
     
-    G3d_location2WindowCoord(map, north, east, top, &col, &row, &depth);
-    printf("G3d_location2WindowCoord col %i row %i depth %i\n", col, row, depth);
-    if(4 != col || 4 != row || 4 != depth) {
-        G_message("Error in G3d_location2WindowCoord");
-        sum++;
-    }
+    G_message("Test the n=2999.9, e=6999.9 and t=799.9, coordinates must be col = 3 row = 11 depth = 3");
     
-    G_message("Test the n=2999.9, e=6999.9 and t=799.9, coordinates must be col = row = depth = 3");
-    
     north = 2999.9;
     east= 6999.9;
     top = 799.9;
         
-    G3d_location2coord(map, north, east, top, &col, &row, &depth);    
+    G3d_location2coord(&(map->region), north, east, top, &col, &row, &depth);    
     printf("G3d_location2coord col %i row %i depth %i\n", col, row, depth);
-    if(3 != col || 3 != row || 3 != depth) {
+    if(3 != col || map->region.rows - 4 != row || 3 != depth) {
         G_message("Error in G3d_location2coord");
         sum++;
     }
     
-    G3d_location2WindowCoord(map, north, east, top, &col, &row, &depth);
-    printf("G3d_location2WindowCoord col %i row %i depth %i\n", col, row, depth);
-    if(3 != col || 3 != row || 3 != depth) {
-        G_message("Error in G3d_location2WindowCoord");
-        sum++;
-    }
-    
     G3d_closeCell(map);
     
     G_remove("grid3", "test_coordinate_transform");

Modified: grass/trunk/lib/g3d/test/test_main.c
===================================================================
--- grass/trunk/lib/g3d/test/test_main.c	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/lib/g3d/test/test_main.c	2011-06-17 20:10:37 UTC (rev 46728)
@@ -105,7 +105,7 @@
             i = 0;
             if (param.unit->answers)
                 while (param.unit->answers[i]) {
-                    if (strcmp(param.unit->answers[i], "coor") == 0)
+                    if (strcmp(param.unit->answers[i], "coord") == 0)
                         returnstat += unit_test_coordinate_transform();
                     if (strcmp(param.unit->answers[i], "putget") == 0)
                         returnstat += unit_test_put_get_value();

Modified: grass/trunk/lib/g3d/test/test_put_get_value.c
===================================================================
--- grass/trunk/lib/g3d/test/test_put_get_value.c	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/lib/g3d/test/test_put_get_value.c	2011-06-17 20:10:37 UTC (rev 46728)
@@ -40,6 +40,7 @@
     sum += test_put_get_value_fcell();
     sum += test_put_get_value_resampling();
 
+
     if (sum > 0)
 	G_warning(_("\n-- g3d put/get value unit tests failure --"));
     else
@@ -89,7 +90,7 @@
      ROWS
   1000 1500 2000 2500 3000 3500 4000 4500 5000 5500 6500 7000 7500 8000 8500 9000 north
     |....|....|....|....|....|....|....|....|....|....|....|....|....|....|....|                         
-    0    1    2    3    4    5    6    7    8    9   10   11   12   13   14   15 region
+   15   14   13   12   11   10    9    8    7    6    5    4    3    2    1    0 region
           
     COLS
   5000 5500 6000 6500 7000 7500 8000 8500 9000 9500 10000 east
@@ -103,7 +104,7 @@
     */
     
     for(z = 0; z < region.depths; z++) {
-        for(y = 0; y < region.rows; y++) {
+        for(y = 0; y < region.rows; y++) { /* From the north to the south */
             for(x = 0; x < region.cols; x++) {
                 /* Add cols, rows and depths and put this in the map */
                 value = x + y + z;
@@ -116,23 +117,21 @@
     
     /* Reread the map and compare the expected results */
     
-    G_message("Get the value of the lower left corner -> 0");
+    G_message("Get the value of the upper left corner -> 0");
     
-    north = region.south;
-    east = region.west;
-    top = region.bottom;
     
     col = row = depth = 0;
-    north = region.south + region.ns_res * row;
+    north = region.north - 0.1; /* north would be out of bounds therefor -0.1 */
     east = region.west + region.ew_res * col;
     top = region.bottom + region.tb_res * depth;
     
     sum += test_resampling_dcell(map, north, east, top, col, row, depth, 1);
     
+    
     G_message("Get the value of x == y == z == 1 -> x + y + z == 3");
     
     col = row = depth = 1;
-    north = region.south + region.ns_res * row;
+    north = region.north - region.ns_res * (row + 1);
     east = region.west + region.ew_res * col;
     top = region.bottom + region.tb_res * depth;
     
@@ -143,7 +142,7 @@
     col = 4;
     row = 3;
     depth = 2;
-    north = region.south + region.ns_res * row;
+    north = region.north - region.ns_res * (row + 1);
     east = region.west + region.ew_res * col;
     top = region.bottom + region.tb_res * depth;
     
@@ -154,7 +153,7 @@
     col = 9;
     row = 14;
     depth = 4;
-    north = region.south + region.ns_res * row;
+    north = region.north - region.ns_res * (row + 1);
     east = region.west + region.ew_res * col;
     top = region.bottom + region.tb_res * depth;
     
@@ -165,9 +164,9 @@
     col = 10;
     row = 15;
     depth = 5;
-    north = region.south + region.ns_res * 15;
-    east = region.west + region.ew_res * 10;
-    top = region.bottom + region.tb_res * 5;
+    north = region.north - region.ns_res * (row + 1);
+    east = region.west + region.ew_res * col;
+    top = region.bottom + region.tb_res * depth;
     
     G3d_getRegionValue(map, north, east, top, &value, DCELL_TYPE);
     G3d_getValue(map, col, row, depth, &value_ref, DCELL_TYPE);
@@ -244,12 +243,8 @@
     
     G_message("Get the value of the lower left corner -> 0");
     
-    north = region.south;
-    east = region.west;
-    top = region.bottom;
-    
     col = row = depth = 0;
-    north = region.south + region.ns_res * row;
+    north = region.north - region.ns_res * (row + 1);
     east = region.west + region.ew_res * col;
     top = region.bottom + region.tb_res * depth;
     
@@ -258,7 +253,7 @@
     G_message("Get the value of x == y == z == 1 -> x + y + z == 3");
     
     col = row = depth = 1;
-    north = region.south + region.ns_res * row;
+    north = region.north - region.ns_res * (row + 1);
     east = region.west + region.ew_res * col;
     top = region.bottom + region.tb_res * depth;
     
@@ -269,7 +264,7 @@
     col = 4;
     row = 3;
     depth = 2;
-    north = region.south + region.ns_res * row;
+    north = region.north - region.ns_res * (row + 1);
     east = region.west + region.ew_res * col;
     top = region.bottom + region.tb_res * depth;
     
@@ -280,7 +275,7 @@
     col = 9;
     row = 14;
     depth = 4;
-    north = region.south + region.ns_res * row;
+    north = region.north - region.ns_res * (row + 1);
     east = region.west + region.ew_res * col;
     top = region.bottom + region.tb_res * depth;
     
@@ -288,9 +283,12 @@
         
     G_message("Get the value of x == 10 y == 15 z == 5 -> x + y + z = NAN");
     
-    north = region.south + region.ns_res * 15;
-    east = region.west + region.ew_res * 10;
-    top = region.bottom + region.tb_res * 5;
+    col = 10;
+    row = 15;
+    depth = 5;
+    north = region.north - region.ns_res * (row + 1);
+    east = region.west + region.ew_res * col;
+    top = region.bottom + region.tb_res * depth;
     
     G3d_getRegionValue(map, north, east, top, &value, FCELL_TYPE);
     G3d_getValue(map, 10, 15, 5, &value_ref, FCELL_TYPE);
@@ -364,9 +362,9 @@
      ROWS
   1000 1500 2000 2500 3000 3500 4000 4500 5000 5500 6500 7000 7500 8000 8500 9000 north
     |....|....|....|....|....|....|....|....|....|....|....|....|....|....|....|                         
-    0    1    2    3    4    5    6    7    8    9   10   11   12   13   14   15 region
+   15   14   13   12   11   10    9    8    7    6    5    4    3    2    1    0 region
     |    |    |    |    |    |    |    |    |    |    |    |    |    |    |    |
-    0    2    4    6    8   10   12   14   16   18   20   22   24   26   28   30 window
+   30   28   26   24   22   20   18   16   14   12   10    8    6    4    2    0 window
           
     COLS
   5000 5500 6000 6500 7000 7500 8000 8500 9000 9500 10000 east
@@ -383,7 +381,7 @@
     */
     
     for(z = 0; z < region.depths; z++) {
-        for(y = 0; y < region.rows; y++) {
+        for(y = 0; y < region.rows; y++) {  /* North to south */
             for(x = 0; x < region.cols; x++) {
                 /* Add cols, rows and depths and put this in the map */
                 value = x + y + z;
@@ -396,13 +394,12 @@
     
     /* Reread the map and compare the expected results */
     
-    G_message("Get the value of the lower left corner -> 0");
+    G_message("Get the value of the upper left corner -> 0");
     
-    north = region.south;
-    east = region.west;
-    top = region.bottom;
-    
     col = row = depth = 0;
+    north = region.north - region.ns_res * (row + 1);
+    east = region.west + region.ew_res * col;
+    top = region.bottom + region.tb_res * depth;
     
     sum += test_resampling_dcell(map, north, east, top, col, row, depth, 2);
     
@@ -410,7 +407,7 @@
     
     
     col = row = depth = 1;
-    north = region.south + region.ns_res * row;
+    north = region.north - region.ns_res * (row + 1);
     east = region.west + region.ew_res * col;
     top = region.bottom + region.tb_res * depth;
     
@@ -421,8 +418,7 @@
     col = 7;
     row = 9;
     depth = 3;
-    
-    north = region.south + region.ns_res * row;
+    north = region.north - region.ns_res * (row + 1);
     east = region.west + region.ew_res * col;
     top = region.bottom + region.tb_res * depth;
     
@@ -433,8 +429,7 @@
     col = 9;
     row = 14;
     depth = 4;
-    
-    north = region.south + region.ns_res * row;
+    north = region.north - region.ns_res * (row + 1);
     east = region.west + region.ew_res * col;
     top = region.bottom + region.tb_res * depth;
     

Modified: grass/trunk/raster/r.to.rast3/main.c
===================================================================
--- grass/trunk/raster/r.to.rast3/main.c	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/raster/r.to.rast3/main.c	2011-06-17 20:10:37 UTC (rev 46728)
@@ -1,20 +1,20 @@
 
 /****************************************************************************
-*
-* MODULE:       r.to.rast3 
-*   	    	
-* AUTHOR(S):    Original author 
-*               Soeren Gebbert soerengebbert at gmx.de
-* 		08 01 2005 Berlin
-* PURPOSE:      Converts 2D raster map slices to one 3D volume map  
-*
-* COPYRIGHT:    (C) 2005 by the GRASS Development Team
-*
-*               This program is free software under the GNU General Public
-*   	    	License (>=v2). Read the file COPYING that comes with GRASS
-*   	    	for details.
-*
-*****************************************************************************/
+ *
+ * MODULE:       r.to.rast3 
+ *   	    	
+ * AUTHOR(S):    Original author 
+ *               Soeren Gebbert soerengebbert at gmx.de
+ * 		08 01 2005 Berlin
+ * PURPOSE:      Converts 2D raster map slices to one 3D volume map  
+ *
+ * COPYRIGHT:    (C) 2005 by the GRASS Development Team
+ *
+ *               This program is free software under the GNU General Public
+ *   	    	License (>=v2). Read the file COPYING that comes with GRASS
+ *   	    	for details.
+ *
+ *****************************************************************************/
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -25,28 +25,28 @@
 #include <grass/config.h>
 
 /*- params and global variables -----------------------------------------*/
-typedef struct
-{
+typedef struct {
     struct Option *input, *output, *tilesize;
     struct Flag *mask;
 } paramType;
 
-paramType param;		/*params */
+paramType param; /*params */
 int globalRastMapType;
 int globalG3dMapType;
 
 
 /*- prototypes --------------------------------------------------------------*/
-void fatal_error(void *map, int *fd, int depths, char *errorMsg);	/*Simple Error message */
-void set_params();		/*Fill the paramType structure */
-void raster_to_g3d(void *map, G3D_Region region, int *fd);	/*Write the raster */
-int open_input_raster_map(const char *name);	/*opens the outputmap */
-void close_input_raster_map(int fd);	/*close the map */
+void fatal_error(void *map, int *fd, int depths, char *errorMsg); /*Simple Error message */
+void set_params(); /*Fill the paramType structure */
+void raster_to_g3d(void *map, G3D_Region region, int *fd); /*Write the raster */
+int open_input_raster_map(const char *name); /*opens the outputmap */
+void close_input_raster_map(int fd); /*close the map */
 
 
 
 /* ************************************************************************* */
 /* Error handling ********************************************************** */
+
 /* ************************************************************************* */
 void fatal_error(void *map, int *fd, int depths, char *errorMsg)
 {
@@ -54,14 +54,14 @@
 
     /* Close files and exit */
     if (map != NULL) {
-	/* should unopen map here! but this functionality is not jet implemented */
-	if (!G3d_closeCell(map))
-	    G3d_fatalError(_("Could not close the map"));
+        /* should unopen map here! but this functionality is not jet implemented */
+        if (!G3d_closeCell(map))
+            G3d_fatalError(_("Could not close the map"));
     }
 
     if (fd != NULL) {
-	for (i = 0; i < depths; i++)
-	    close_input_raster_map(fd[i]);
+        for (i = 0; i < depths; i++)
+            close_input_raster_map(fd[i]);
     }
 
     G3d_fatalError(errorMsg);
@@ -71,6 +71,7 @@
 
 /* ************************************************************************* */
 /* Setg up the arguments we are expecting ********************************** */
+
 /* ************************************************************************* */
 void set_params()
 {
@@ -97,6 +98,7 @@
 
 /* ************************************************************************* */
 /* Write the raster maps into one G3D map ********************************** */
+
 /* ************************************************************************* */
 void raster_to_g3d(void *map, G3D_Region region, int *fd)
 {
@@ -114,92 +116,74 @@
     rast = Rast_allocate_buf(globalRastMapType);
 
     G_debug(3, "raster_to_g3d: Writing %i raster maps with %i rows %i cols.",
-	    depths, rows, cols);
+            depths, rows, cols);
 
     /*Every Rastermap */
-    for (z = 0; z < depths; z++) {	/*From the bottom to the top */
-	G_debug(4, "Writing g3d slice %i", z + 1);
-	for (y = 0; y < rows; y++) {
-	    G_percent(y, rows - 1, 10);
+    for (z = 0; z < depths; z++) { /*From the bottom to the top */
+        G_percent(z, depths, 1);
+        G_debug(4, "Writing g3d slice %i", z + 1);
+        for (y = 0; y < rows; y++) { /* From north to south */
 
-	    Rast_get_row(fd[z], rast, y, globalRastMapType);
+            Rast_get_row(fd[z], rast, y, globalRastMapType);
 
-	    for (x = 0, ptr = rast; x < cols; x++,
-		 ptr =
-		 G_incr_void_ptr(ptr, Rast_cell_size(globalRastMapType))) {
-		if (globalRastMapType == CELL_TYPE) {
-		    if (Rast_is_null_value(ptr, globalRastMapType)) {
-			G3d_setNullValue(&dvalue, 1, DCELL_TYPE);
-		    }
-		    else {
-			dvalue = *(CELL *) ptr;
-		    }           
-            /* Because we read raster rows from north to south, but the coordinate system
-             of the g3d cube read from south to north we need to adjust the
-             Cube coordinates row = rows - y - 1.
-             */
-		    if (G3d_putValue
-			(map, x, rows - y - 1, z, (char *)&dvalue, DCELL_TYPE) < 0)
-			fatal_error(map, fd, depths,
-				    "Error writing double data");
-		}
-		else if (globalRastMapType == FCELL_TYPE) {
-		    if (Rast_is_null_value(ptr, globalRastMapType)) {
-			G3d_setNullValue(&fvalue, 1, FCELL_TYPE);
-		    }
-		    else {
-			fvalue = *(FCELL *) ptr;
-		    }
-            /* Because we read raster rows from north to south, but the coordinate system
-             of the g3d cube read from south to north we need to adjust the
-             Cube coordinates row = rows - y - 1.
-             */
-		    if (G3d_putValue
-			(map, x, rows - y - 1, z,(char *)&fvalue, FCELL_TYPE) < 0)
-			fatal_error(map, fd, depths,
-				    "Error writing float data");
-		}
-		else if (globalRastMapType == DCELL_TYPE) {
-		    if (Rast_is_null_value(ptr, globalRastMapType)) {
-			G3d_setNullValue(&dvalue, 1, DCELL_TYPE);
-		    }
-		    else {
-			dvalue = *(DCELL *) ptr;
-		    }
-            /* Because we read raster rows from north to south, but the coordinate system
-             of the g3d cube read from south to north we need to adjust the
-             Cube coordinates row = rows - y - 1.
-             */
-		    if (G3d_putValue
-			(map, x, rows - y - 1, z,(char *)&dvalue, DCELL_TYPE) < 0)
-			fatal_error(map, fd, depths,
-				    "Error writing double data");
-
-		}
-
-	    }
-	}
-	G_debug(2, "\nDone\n");
+            for (x = 0, ptr = rast; x < cols; x++,
+                ptr =
+                G_incr_void_ptr(ptr, Rast_cell_size(globalRastMapType))) {
+                if (globalRastMapType == CELL_TYPE) {
+                    if (Rast_is_null_value(ptr, globalRastMapType)) {
+                        G3d_setNullValue(&dvalue, 1, DCELL_TYPE);
+                    } else {
+                        dvalue = *(CELL *) ptr;
+                    }
+                    if (G3d_putValue
+                        (map, x, y, z, (char *) &dvalue, DCELL_TYPE) < 0)
+                        fatal_error(map, fd, depths,
+                                    "Error writing double data");
+                } else if (globalRastMapType == FCELL_TYPE) {
+                    if (Rast_is_null_value(ptr, globalRastMapType)) {
+                        G3d_setNullValue(&fvalue, 1, FCELL_TYPE);
+                    } else {
+                        fvalue = *(FCELL *) ptr;
+                    }
+                    if (G3d_putValue
+                        (map, x, y, z, (char *) &fvalue, FCELL_TYPE) < 0)
+                        fatal_error(map, fd, depths,
+                                    "Error writing float data");
+                } else if (globalRastMapType == DCELL_TYPE) {
+                    if (Rast_is_null_value(ptr, globalRastMapType)) {
+                        G3d_setNullValue(&dvalue, 1, DCELL_TYPE);
+                    } else {
+                        dvalue = *(DCELL *) ptr;
+                    }
+                    if (G3d_putValue
+                        (map, x, y, z, (char *) &dvalue, DCELL_TYPE) < 0)
+                        fatal_error(map, fd, depths,
+                                    "Error writing double data");
+                }
+            }
+        }
     }
 
+	G_percent(1, 1, 1);
 
     if (rast)
-	G_free(rast);
+        G_free(rast);
 
 }
 
 
 /* ************************************************************************* */
 /* Main function, open the raster maps and create the G3D raster map ******* */
+
 /* ************************************************************************* */
 int main(int argc, char *argv[])
 {
     G3D_Region region;
     struct Cell_head window2d;
     struct GModule *module;
-    void *map = NULL;		/*The 3D Rastermap */
+    void *map = NULL; /*The 3D Rastermap */
     int i = 0;
-    int *fd = NULL;		/*The filehandler array for the 2D inputmaps */
+    int *fd = NULL; /*The filehandler array for the 2D inputmaps */
     int cols, rows, opencells;
     char *name;
     int changemask = 0;
@@ -214,19 +198,19 @@
     G_add_keyword(_("volume"));
     G_add_keyword(_("conversion"));
     module->description =
-	_("Converts 2D raster map slices to one 3D raster volume map.");
+        _("Converts 2D raster map slices to one 3D raster volume map.");
 
     /* Get parameters from user */
     set_params();
 
     /* Have GRASS get inputs */
     if (G_parser(argc, argv))
-	exit(EXIT_FAILURE);
+        exit(EXIT_FAILURE);
 
 
     /*Check for output */
     if (param.output->answer == NULL)
-	G3d_fatalError(_("No output map"));
+        G3d_fatalError(_("No output map"));
 
     /* Get the tile size */
     maxSize = atoi(param.tilesize->answer);
@@ -243,21 +227,21 @@
 
     /*If not equal, set the 2D windows correct */
     if (rows != region.rows || cols != region.cols) {
-	G_message(_("The 2d and 3d region settings are different. I will use the g3d settings to adjust the 2d region."));
-	G_get_set_window(&window2d);
-	window2d.ns_res = region.ns_res;
-	window2d.ew_res = region.ew_res;
-	window2d.rows = region.rows;
-	window2d.cols = region.cols;
-	Rast_set_window(&window2d);
+        G_message(_("The 2d and 3d region settings are different. I will use the g3d settings to adjust the 2d region."));
+        G_get_set_window(&window2d);
+        window2d.ns_res = region.ns_res;
+        window2d.ew_res = region.ew_res;
+        window2d.rows = region.rows;
+        window2d.cols = region.cols;
+        Rast_set_window(&window2d);
     }
 
 
     /*prepare the filehandler */
-    fd = (int *)G_malloc(region.depths * sizeof(int));
+    fd = (int *) G_malloc(region.depths * sizeof (int));
 
     if (fd == NULL)
-	fatal_error(map, NULL, 0, _("Out of memory"));
+        fatal_error(map, NULL, 0, _("Out of memory"));
 
     name = NULL;
 
@@ -265,56 +249,56 @@
     globalG3dMapType = DCELL_TYPE;
     maptype_tmp = DCELL_TYPE;
 
-    opencells = 0;		/*Number of opened maps */
+    opencells = 0; /*Number of opened maps */
     /*Loop over all output maps! open */
     for (i = 0; i < region.depths; i++) {
-	/*Open only existing maps */
-	if (nofile == 0 && param.input->answers[i])
-	    name = param.input->answers[i];
-	else
-	    nofile = 1;
+        /*Open only existing maps */
+        if (nofile == 0 && param.input->answers[i])
+            name = param.input->answers[i];
+        else
+            nofile = 1;
 
-	/*if only one map is given, open it depths - times */
-	G_verbose_message(_("Open raster map %s - one time for each depth (%d/%d)"),
-		  name, i + 1, region.depths);
-	fd[i] = open_input_raster_map(name);
-	opencells++;
+        /*if only one map is given, open it depths - times */
+        G_verbose_message(_("Open raster map %s - one time for each depth (%d/%d)"),
+                          name, i + 1, region.depths);
+        fd[i] = open_input_raster_map(name);
+        opencells++;
 
-	maptype_tmp = Rast_get_map_type(fd[i]);
+        maptype_tmp = Rast_get_map_type(fd[i]);
 
-	/*maptype */
-	if (i == 0)
-	    globalRastMapType = maptype_tmp;
+        /*maptype */
+        if (i == 0)
+            globalRastMapType = maptype_tmp;
 
-	if (maptype_tmp != globalRastMapType) {
-	    fatal_error(map, fd, opencells,
-			_("Input maps have to be from the same type. CELL, FCELL or DCELL!"));
-	}
+        if (maptype_tmp != globalRastMapType) {
+            fatal_error(map, fd, opencells,
+                        _("Input maps have to be from the same type. CELL, FCELL or DCELL!"));
+        }
     }
 
     G_message(_("Creating 3D raster map"));
     map = NULL;
 
     /* Set the map type depending from the arster maps type */
-    if (globalRastMapType == CELL_TYPE) 
-	globalG3dMapType = DCELL_TYPE;
-    else 
-	globalG3dMapType = FCELL_TYPE;
+    if (globalRastMapType == CELL_TYPE)
+        globalG3dMapType = DCELL_TYPE;
+    else
+        globalG3dMapType = FCELL_TYPE;
 
     map = G3d_openNewOptTileSize(param.output->answer, G3D_USE_CACHE_XY, &region, globalG3dMapType, maxSize);
 
     if (map == NULL)
-	fatal_error(map, fd, opencells, _("Error opening 3d raster map"));
+        fatal_error(map, fd, opencells, _("Error opening 3d raster map"));
 
     /*if requested set the Mask on */
     if (param.mask->answer) {
-	if (G3d_maskFileExists()) {
-	    changemask = 0;
-	    if (G3d_maskIsOff(map)) {
-		G3d_maskOn(map);
-		changemask = 1;
-	    }
-	}
+        if (G3d_maskFileExists()) {
+            changemask = 0;
+            if (G3d_maskIsOff(map)) {
+                G3d_maskOn(map);
+                changemask = 1;
+            }
+        }
     }
 
     /*Create the G3D Rastermap */
@@ -322,24 +306,24 @@
 
     /*We set the Mask off, if it was off before */
     if (param.mask->answer) {
-	if (G3d_maskFileExists())
-	    if (G3d_maskIsOn(map) && changemask)
-		G3d_maskOff(map);
+        if (G3d_maskFileExists())
+            if (G3d_maskIsOn(map) && changemask)
+                G3d_maskOff(map);
     }
 
     /*Loop over all output maps! close */
     for (i = 0; i < region.depths; i++)
-	close_input_raster_map(fd[i]);
+        close_input_raster_map(fd[i]);
 
     if (fd)
-	G_free(fd);
+        G_free(fd);
 
     /* Flush all tile */
     if (!G3d_flushAllTiles(map))
-	G3d_fatalError("Error flushing tiles with G3d_flushAllTiles");
+        G3d_fatalError("Error flushing tiles with G3d_flushAllTiles");
     /* Close files and exit */
     if (!G3d_closeCell(map))
-	G3d_fatalError(_("Error closing 3d raster map"));
+        G3d_fatalError(_("Error closing 3d raster map"));
 
     map = NULL;
 
@@ -352,6 +336,7 @@
 
 /* ************************************************************************* */
 /* Open the raster input map *********************************************** */
+
 /* ************************************************************************* */
 int open_input_raster_map(const char *name)
 {
@@ -362,6 +347,7 @@
 
 /* ************************************************************************* */
 /* Close the raster input map ********************************************** */
+
 /* ************************************************************************* */
 void close_input_raster_map(int fd)
 {

Modified: grass/trunk/raster/r.to.rast3elev/main.c
===================================================================
--- grass/trunk/raster/r.to.rast3elev/main.c	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/raster/r.to.rast3elev/main.c	2011-06-17 20:10:37 UTC (rev 46728)
@@ -1,20 +1,20 @@
 
 /****************************************************************************
-*
-* MODULE:       r.to.rast3elev 
-*   	    	
-* AUTHOR(S):    Original author 
-*               Soeren Gebbert soerengebbert at gmx.de
-* 		07 08 2006 Berlin
-* PURPOSE:      Creates a 3D volume map based on 2D elevation and value raster maps
-*
-* COPYRIGHT:    (C) 2006 by the GRASS Development Team
-*
-*               This program is free software under the GNU General Public
-*   	    	License (>=v2). Read the file COPYING that comes with GRASS
-*   	    	for details.
-*
-*****************************************************************************/
+ *
+ * MODULE:       r.to.rast3elev 
+ *   	    	
+ * AUTHOR(S):    Original author 
+ *               Soeren Gebbert soerengebbert at gmx.de
+ * 		07 08 2006 Berlin
+ * PURPOSE:      Creates a 3D volume map based on 2D elevation and value raster maps
+ *
+ * COPYRIGHT:    (C) 2006 by the GRASS Development Team
+ *
+ *               This program is free software under the GNU General Public
+ *   	    	License (>=v2). Read the file COPYING that comes with GRASS
+ *   	    	for details.
+ *
+ *****************************************************************************/
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -25,58 +25,58 @@
 #include <grass/config.h>
 
 /*- params and global variables -----------------------------------------*/
-typedef struct
-{
+typedef struct {
     struct Option *input, *elev, *output, *upper, *lower, *tilesize;
     struct Flag *fillup, *filllow, *mask;
 } paramType;
 
 /*Data to be used */
-typedef struct
-{
-    int mapnum;			/*The umber of input maps */
-    int count;			/*3d raster map access counter */
-    void *map;			/*The 3d voxel output map */
-    int input;			/*The current raster value map pointer */
-    int elev;			/*The current raster elevation map pointer */
+typedef struct {
+    int mapnum; /*The umber of input maps */
+    int count; /*3d raster map access counter */
+    void *map; /*The 3d voxel output map */
+    int input; /*The current raster value map pointer */
+    int elev; /*The current raster elevation map pointer */
     int inputmaptype;
     int elevmaptype;
-    double upper;		/*The upper value */
-    double lower;		/*The lower value */
-    int useUpperVal;		/*0 = use upper value, 1 = use map value to fill upper cells */
-    int useLowerVal;		/*0 = use lower value, 1 = use map value to fill lower cells */
+    double upper; /*The upper value */
+    double lower; /*The lower value */
+    int useUpperVal; /*0 = use upper value, 1 = use map value to fill upper cells */
+    int useLowerVal; /*0 = use lower value, 1 = use map value to fill lower cells */
 } Database;
 
-paramType param;		/*params */
+paramType param; /*params */
 
 /*- prototypes --------------------------------------------------------------*/
-void fatal_error(Database db, char *errorMsg);	/*Simple Error message */
-void set_params();		/*Fill the paramType structure */
-void elev_raster_to_g3d(Database db, G3D_Region region);	/*Write the raster */
-int open_input_raster_map(const char *name);	/*opens the outputmap */
-void close_input_raster_map(int fd);	/*close the map */
+void fatal_error(Database db, char *errorMsg); /*Simple Error message */
+void set_params(); /*Fill the paramType structure */
+void elev_raster_to_g3d(Database db, G3D_Region region); /*Write the raster */
+int open_input_raster_map(const char *name); /*opens the outputmap */
+void close_input_raster_map(int fd); /*close the map */
 double get_raster_value_as_double(int maptype, void *ptr, double nullval);
-void check_input_maps(Database * db);	/*Check input maps */
+void check_input_maps(Database * db); /*Check input maps */
 
 
 /* ************************************************************************* */
 /* Get the value of the current raster pointer as double ******************* */
+
 /* ************************************************************************* */
 double get_raster_value_as_double(int MapType, void *ptr, double nullval)
 {
     if (Rast_is_null_value(ptr, MapType))
-	return nullval;
+        return nullval;
 
     switch (MapType) {
-    case CELL_TYPE:	return *(CELL *) ptr;
-    case FCELL_TYPE:	return *(FCELL *) ptr;
-    case DCELL_TYPE:	return *(DCELL *) ptr;
-    default:		return nullval;
+        case CELL_TYPE: return *(CELL *) ptr;
+        case FCELL_TYPE: return *(FCELL *) ptr;
+        case DCELL_TYPE: return *(DCELL *) ptr;
+        default: return nullval;
     }
 }
 
 /* ************************************************************************* */
 /* Check the input maps **************************************************** */
+
 /* ************************************************************************* */
 void check_input_maps(Database * db)
 {
@@ -87,16 +87,16 @@
 
     /*Check elev maps */
     if (param.elev->answers != NULL)
-	for (i = 0; param.elev->answers[i] != NULL; i++)
-	    elevcount++;
+        for (i = 0; param.elev->answers[i] != NULL; i++)
+            elevcount++;
 
     /*Check input maps */
     if (param.input->answers != NULL)
-	for (i = 0; param.input->answers[i] != NULL; i++)
-	    inputcount++;
+        for (i = 0; param.input->answers[i] != NULL; i++)
+            inputcount++;
 
     if (elevcount != inputcount)
-	G_fatal_error(_("The number of input and elevation maps is not equal"));
+        G_fatal_error(_("The number of input and elevation maps is not equal"));
 
     db->mapnum = inputcount;
 
@@ -105,6 +105,7 @@
 
 /* ************************************************************************* */
 /* Open the raster input map *********************************************** */
+
 /* ************************************************************************* */
 int open_input_raster_map(const char *name)
 {
@@ -115,6 +116,7 @@
 
 /* ************************************************************************* */
 /* Close the raster input map ********************************************** */
+
 /* ************************************************************************* */
 void close_input_raster_map(int fd)
 {
@@ -123,21 +125,22 @@
 
 /* ************************************************************************* */
 /* Error handling ********************************************************** */
+
 /* ************************************************************************* */
 void fatal_error(Database db, char *errorMsg)
 {
     /* Close files and exit */
     if (db.map != NULL) {
-	/* should unopen map here! but this functionality is not jet implemented */
-	if (!G3d_closeCell(db.map))
-	    G3d_fatalError(_("Could not close the map"));
+        /* should unopen map here! but this functionality is not jet implemented */
+        if (!G3d_closeCell(db.map))
+            G3d_fatalError(_("Could not close the map"));
     }
 
     if (db.input)
-	close_input_raster_map(db.input);
+        close_input_raster_map(db.input);
 
     if (db.elev)
-	close_input_raster_map(db.elev);
+        close_input_raster_map(db.elev);
 
     G3d_fatalError(errorMsg);
     exit(EXIT_FAILURE);
@@ -145,6 +148,7 @@
 
 /* ************************************************************************* */
 /* Set up the arguments **************************************************** */
+
 /* ************************************************************************* */
 void set_params()
 {
@@ -158,14 +162,14 @@
     param.upper->type = TYPE_DOUBLE;
     param.upper->required = NO;
     param.upper->description =
-	_("The value to fill the upper cells, default is null");
+        _("The value to fill the upper cells, default is null");
 
     param.lower = G_define_option();
     param.lower->key = "lower";
     param.lower->type = TYPE_DOUBLE;
     param.lower->required = NO;
     param.lower->description =
-	_("The value to fill the lower cells, default is null");
+        _("The value to fill the lower cells, default is null");
 
     param.tilesize = G_define_option();
     param.tilesize->description = _("The maximum tile size in kilo bytes. Default is 32KB.");
@@ -178,12 +182,12 @@
     param.fillup = G_define_flag();
     param.fillup->key = 'u';
     param.fillup->description =
-	_("Use the input map values to fill the upper cells");
+        _("Use the input map values to fill the upper cells");
 
     param.filllow = G_define_flag();
     param.filllow->key = 'l';
     param.filllow->description =
-	_("Use the input map values to fill the lower cells");
+        _("Use the input map values to fill the lower cells");
 
     param.mask = G_define_flag();
     param.mask->key = 'm';
@@ -194,6 +198,7 @@
 
 /* ************************************************************************* */
 /* Write the raster maps into the G3D map *********************************** */
+
 /* ************************************************************************* */
 void elev_raster_to_g3d(Database db, G3D_Region region)
 {
@@ -223,117 +228,113 @@
 
 
     G_debug(3,
-	    "elev_raster_to_g3d: Writing 3D raster map with depths %i rows %i cols %i and count %i.",
-	    depths, rows, cols, db.count);
+            "elev_raster_to_g3d: Writing 3D raster map with depths %i rows %i cols %i and count %i.",
+            depths, rows, cols, db.count);
 
-    /*The mainloop */        
-    /* Because we read raster rows from north to south, but the coordinate system
-     of the g3d cube read from south to north we need to adjust the
-     Cube coordinates row = rows - y - 1.
-     */
-    for (y = 0; y < rows; y++) {
-	G_percent(y, rows - 1, 10);
+    /*The mainloop */
+    for (y = 0; y < rows; y++) { /* From north to south */
+        G_percent(y, rows - 1, 10);
 
-	Rast_get_row(db.input, input_rast, y, db.inputmaptype);
-	Rast_get_row(db.elev, elev_rast, y, db.elevmaptype);
+        Rast_get_row(db.input, input_rast, y, db.inputmaptype);
+        Rast_get_row(db.elev, elev_rast, y, db.elevmaptype);
 
-	for (x = 0, input_ptr = input_rast, elev_ptr = elev_rast; x < cols;
-	     x++, input_ptr =
-	     G_incr_void_ptr(input_ptr, Rast_cell_size(db.inputmaptype)),
-	     elev_ptr =
-	     G_incr_void_ptr(elev_ptr, Rast_cell_size(db.elevmaptype))) {
+        for (x = 0, input_ptr = input_rast, elev_ptr = elev_rast; x < cols;
+            x++, input_ptr =
+            G_incr_void_ptr(input_ptr, Rast_cell_size(db.inputmaptype)),
+            elev_ptr =
+            G_incr_void_ptr(elev_ptr, Rast_cell_size(db.elevmaptype))) {
 
-	    /*Get the elevation and the input map value */
-	    inval =
-		get_raster_value_as_double(db.inputmaptype, input_ptr, null);
-	    height =
-		get_raster_value_as_double(db.elevmaptype, elev_ptr, null);
+            /*Get the elevation and the input map value */
+            inval =
+                get_raster_value_as_double(db.inputmaptype, input_ptr, null);
+            height =
+                get_raster_value_as_double(db.elevmaptype, elev_ptr, null);
 
-	    G_debug(4,
-		    "Caluclating position in 3d region -> height %g with value %g",
-		    height, inval);
+            G_debug(4,
+                    "Caluclating position in 3d region -> height %g with value %g",
+                    height, inval);
 
-	    /* Calculate if the G3D cell is lower or upper the elevation map
-	     *  and set the value.*/
-	    if (db.count == 0) {
-		/*Use this method if the 3d raster map was not touched befor */
-		for (z = 0; z < depths; z++) {
+            /* Calculate if the G3D cell is lower or upper the elevation map
+             *  and set the value.*/
+            if (db.count == 0) {
+                /*Use this method if the 3d raster map was not touched befor */
+                for (z = 0; z < depths; z++) {
 
-		    /*Upper cells */
-		    if (height < (z * tbres + bottom)) {
-			if (db.useUpperVal == 1)
-			    value = inval;	/*Input map value */
-			else
-			    value = db.upper;
-		    }
-		    /*lower cells */
-		    if (height > ((z + 1) * tbres + bottom)) {
-			if (db.useLowerVal == 1)
-			    value = inval;	/*Input map value */
-			else
-			    value = db.lower;
-		    }
-		    /*If exactly at the border, fill upper AND lower cell */
-		    if (height >= (z * tbres + bottom) &&
-			height <= ((z + 1) * tbres + bottom))
-			value = inval;
-		    /*If the elevation is null, set the G3D value null */
-		    if (G3d_isNullValueNum(&height, DCELL_TYPE))
-			value = null;
+                    /*Upper cells */
+                    if (height < (z * tbres + bottom)) {
+                        if (db.useUpperVal == 1)
+                            value = inval; /*Input map value */
+                        else
+                            value = db.upper;
+                    }
+                    /*lower cells */
+                    if (height > ((z + 1) * tbres + bottom)) {
+                        if (db.useLowerVal == 1)
+                            value = inval; /*Input map value */
+                        else
+                            value = db.lower;
+                    }
+                    /*If exactly at the border, fill upper AND lower cell */
+                    if (height >= (z * tbres + bottom) &&
+                        height <= ((z + 1) * tbres + bottom))
+                        value = inval;
+                    /*If the elevation is null, set the G3D value null */
+                    if (G3d_isNullValueNum(&height, DCELL_TYPE))
+                        value = null;
 
-		    /*Write the value to the 3D map */
-		    if (G3d_putDouble(db.map, x, rows - y - 1, z, value) < 0)
-			fatal_error(db, _("Error writing G3D double data"));
-		}
-	    }
-	    else {
-		/*Use this method for every following 3d raster maps access */
-		for (z = 0; z < depths; z++) {
-		    /*Upper cells */
-		    if (height < (z * tbres + bottom)) {
-			if (db.useUpperVal == 1)
-			    value = inval;	/*Input map value */
-			else if (db.useUpperVal == 2)
-			    value = db.upper;
-			else
-			    value = G3d_getDouble(db.map, x, rows - y - 1, z);
-		    }
-		    /*lower cells */
-		    if (height > ((z + 1) * tbres + bottom)) {
-			if (db.useLowerVal == 1)
-			    value = inval;	/*Input map value */
-			else if (db.useLowerVal == 2)
-			    value = db.lower;
-			else
-			    value = G3d_getDouble(db.map, x, rows - y - 1, z);
-		    }
-		    /*If exactly at the border, fill upper AND lower cell */
-		    if (height >= (z * tbres + bottom) &&
-			height <= ((z + 1) * tbres + bottom))
-			value = inval;
-		    /*If the elevation is null, set the G3D value null */
-		    if (G3d_isNullValueNum(&height, DCELL_TYPE))
-			value = G3d_getDouble(db.map, x, rows - y - 1, z);
+                    /*Write the value to the 3D map */
+                    if (G3d_putDouble(db.map, x, y, z, value) < 0)
+                        fatal_error(db, _("Error writing G3D double data"));
+                }
+            } else {
+                /*Use this method for every following 3d raster maps access */
+                for (z = 0; z < depths; z++) {
+                    /*Upper cells */
+                    if (height < (z * tbres + bottom)) {
+                        if (db.useUpperVal == 1)
+                            value = inval; /*Input map value */
+                        else if (db.useUpperVal == 2)
+                            value = db.upper;
+                        else
+                            value = G3d_getDouble(db.map, x, y, z);
+                    }
+                    /*lower cells */
+                    if (height > ((z + 1) * tbres + bottom)) {
+                        if (db.useLowerVal == 1)
+                            value = inval; /*Input map value */
+                        else if (db.useLowerVal == 2)
+                            value = db.lower;
+                        else
+                            value = G3d_getDouble(db.map, x, y, z);
+                    }
+                    /*If exactly at the border, fill upper AND lower cell */
+                    if (height >= (z * tbres + bottom) &&
+                        height <= ((z + 1) * tbres + bottom))
+                        value = inval;
+                    /*If the elevation is null, set the G3D value null */
+                    if (G3d_isNullValueNum(&height, DCELL_TYPE))
+                        value = G3d_getDouble(db.map, x, y, z);
 
-		    /*Write the value to the 3D map */
-		    if (G3d_putDouble(db.map, x, rows - y - 1, z, value) < 0)
-			fatal_error(db, _("Error writing G3D double data"));
+                    /*Write the value to the 3D map */
+                    if (G3d_putDouble(db.map, x, y, z, value) < 0)
+                        fatal_error(db, _("Error writing G3D double data"));
 
-		}
-	    }
-	}
+                }
+            }
+        }
     }
 
     if (input_rast)
-	G_free(input_rast);
+        G_free(input_rast);
     if (elev_rast)
-	G_free(elev_rast);
+        G_free(elev_rast);
 
     return;
 }
 
 /* ************************************************************************* */
 /* Main function, open the raster maps and create the G3D raster maps ****** */
+
 /* ************************************************************************* */
 int main(int argc, char *argv[])
 {
@@ -362,14 +363,14 @@
     G_add_keyword(_("voxel"));
     G_add_keyword(_("conversion"));
     module->description =
-	_("Creates a 3D volume map based on 2D elevation and value raster maps.");
+        _("Creates a 3D volume map based on 2D elevation and value raster maps.");
 
     /* Get parameters from user */
     set_params();
 
     /* Have GRASS get inputs */
     if (G_parser(argc, argv))
-	exit(EXIT_FAILURE);
+        exit(EXIT_FAILURE);
 
     /*Check if maps exist */
     check_input_maps(&db);
@@ -383,35 +384,33 @@
 
     /*Use the input map value to fill the upper cells */
     if (param.fillup->answer) {
-	db.useUpperVal = 1;
+        db.useUpperVal = 1;
     }
 
     /*Use the input map value to fill the lower cells */
     if (param.filllow->answer) {
-	db.useLowerVal = 1;
+        db.useLowerVal = 1;
     }
 
     /*Set the upper value */
     if (param.upper->answer) {
-	if (sscanf(param.upper->answer, "%lf", &db.upper))
-	    db.useUpperVal = 2;
-	else
-	    G_fatal_error(_("The upper value is not valid"));
+        if (sscanf(param.upper->answer, "%lf", &db.upper))
+            db.useUpperVal = 2;
+        else
+            G_fatal_error(_("The upper value is not valid"));
+    } else {
+        G3d_setNullValue(&db.upper, 1, DCELL_TYPE);
     }
-    else {
-	G3d_setNullValue(&db.upper, 1, DCELL_TYPE);
-    }
 
     /*Set the lower value */
     if (param.lower->answer) {
-	if (sscanf(param.lower->answer, "%lf", &db.lower))
-	    db.useLowerVal = 2;
-	else
-	    G_fatal_error(_("The lower value is not valid"));
+        if (sscanf(param.lower->answer, "%lf", &db.lower))
+            db.useLowerVal = 2;
+        else
+            G_fatal_error(_("The lower value is not valid"));
+    } else {
+        G3d_setNullValue(&db.lower, 1, DCELL_TYPE);
     }
-    else {
-	G3d_setNullValue(&db.lower, 1, DCELL_TYPE);
-    }
 
     /* Figure out the current g3d region */
     G3d_initDefaults();
@@ -425,13 +424,13 @@
 
     /*If not equal, set the 2D windows correct */
     if (rows != region.rows || cols != region.cols) {
-	G_message(_("The 2d and 3d region settings are different. I will use the g3d settings to adjust the 2d region."));
-	G_get_set_window(&window2d);
-	window2d.ns_res = region.ns_res;
-	window2d.ew_res = region.ew_res;
-	window2d.rows = region.rows;
-	window2d.cols = region.cols;
-	Rast_set_window(&window2d);
+        G_message(_("The 2d and 3d region settings are different. I will use the g3d settings to adjust the 2d region."));
+        G_get_set_window(&window2d);
+        window2d.ns_res = region.ns_res;
+        window2d.ew_res = region.ew_res;
+        window2d.rows = region.rows;
+        window2d.cols = region.cols;
+        Rast_set_window(&window2d);
     }
 
     G_debug(2, "Open 3d raster map %s", param.output->answer);
@@ -441,18 +440,18 @@
     db.map = G3d_openNewOptTileSize(param.output->answer, G3D_USE_CACHE_XY, &region, DCELL_TYPE, maxSize);
 
     if (db.map == NULL)
-	fatal_error(db, _("Error opening 3d raster map"));
+        fatal_error(db, _("Error opening 3d raster map"));
 
 
     /*if requested set the Mask on */
     if (param.mask->answer) {
-	if (G3d_maskFileExists()) {
-	    changemask = 0;
-	    if (G3d_maskIsOff(db.map)) {
-		G3d_maskOn(db.map);
-		changemask = 1;
-	    }
-	}
+        if (G3d_maskFileExists()) {
+            changemask = 0;
+            if (G3d_maskIsOff(db.map)) {
+                G3d_maskOn(db.map);
+                changemask = 1;
+            }
+        }
     }
 
     G_message(_("Creating 3D raster map"));
@@ -460,46 +459,46 @@
     /*For each elevation - input map couple */
     for (i = 0; i < db.mapnum; i++) {
 
-	G_debug(2, "Open input raster map %s", param.input->answers[i]);
+        G_debug(2, "Open input raster map %s", param.input->answers[i]);
 
-	db.count = i;
-	/*Open input map */
-	name = param.input->answers[i];
-	db.input = open_input_raster_map(name);
-	db.inputmaptype = Rast_map_type(name, "");
+        db.count = i;
+        /*Open input map */
+        name = param.input->answers[i];
+        db.input = open_input_raster_map(name);
+        db.inputmaptype = Rast_map_type(name, "");
 
-	G_debug(2, "Open elev raster map %s", param.elev->answers[i]);
+        G_debug(2, "Open elev raster map %s", param.elev->answers[i]);
 
-	/*Open elev map */
-	name = param.elev->answers[i];
-	db.elev = open_input_raster_map(name);
-	db.elevmaptype = Rast_map_type(name, "");
+        /*Open elev map */
+        name = param.elev->answers[i];
+        db.elev = open_input_raster_map(name);
+        db.elevmaptype = Rast_map_type(name, "");
 
-	/****************************************/
-	/*Write the data into the G3D Rastermap */
-	elev_raster_to_g3d(db, region);
+        /****************************************/
+        /*Write the data into the G3D Rastermap */
+        elev_raster_to_g3d(db, region);
 
-       /*****************************************/
+        /*****************************************/
 
-	/* Close files */
-	close_input_raster_map(db.input);
-	close_input_raster_map(db.elev);
+        /* Close files */
+        close_input_raster_map(db.input);
+        close_input_raster_map(db.elev);
     }
 
     /*We set the Mask off, if it was off before */
     if (param.mask->answer) {
-	if (G3d_maskFileExists())
-	    if (G3d_maskIsOn(db.map) && changemask)
-		G3d_maskOff(db.map);
+        if (G3d_maskFileExists())
+            if (G3d_maskIsOn(db.map) && changemask)
+                G3d_maskOff(db.map);
     }
 
     G_debug(2, "Close 3d raster map");
 
     /* Flush all tile */
     if (!G3d_flushAllTiles(db.map))
-	G3d_fatalError("Error flushing tiles with G3d_flushAllTiles");
+        G3d_fatalError("Error flushing tiles with G3d_flushAllTiles");
     if (!G3d_closeCell(db.map))
-	G3d_fatalError(_("Error closing 3d raster map"));
+        G3d_fatalError(_("Error closing 3d raster map"));
 
     G_debug(2, "\nDone\n");
 

Modified: grass/trunk/raster3d/base/r3.mask.main.c
===================================================================
--- grass/trunk/raster3d/base/r3.mask.main.c	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/raster3d/base/r3.mask.main.c	2011-06-17 20:10:37 UTC (rev 46728)
@@ -89,7 +89,7 @@
 	    G3d_unlockAll(mask);
 	}
     
-	for (y = 0; y < region.rows; y++)	/* We count from south to north in the cube coordinate system */
+	for (y = 0; y < region.rows; y++)	/* We count from north to south in the cube coordinate system */
 	    for (x = 0; x < region.cols; x++) {
 		value = G3d_getDoubleRegion(map, x, y, z);
 		if (mask_d_select((DCELL *) & value, maskRules))

Modified: grass/trunk/raster3d/r3.cross.rast/test.r3.cross.rast.sh
===================================================================
--- grass/trunk/raster3d/r3.cross.rast/test.r3.cross.rast.sh	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/raster3d/r3.cross.rast/test.r3.cross.rast.sh	2011-06-17 20:10:37 UTC (rev 46728)
@@ -16,8 +16,7 @@
 r.mapcalc --o expr="elev_5 = 45"
 r.mapcalc --o expr="elev_NAN = 50"
 r.mapcalc --o expr="elev_cross = float(col()* 5)"
-# Now create a voxel map with value = col + row + depth. Beware the 
-# raster3d module count from south to north.
+# Now create a voxel map with value = col + row + depth. 
 r3.mapcalc --o expr="volume = col() + row() + depth()"
 # Add null value information
 r3.mapcalc --o expr="volume_null = if(row() == 1 || row() == 5, null(), volume)"
@@ -32,4 +31,7 @@
 r3.cross.rast --o input=volume_null elevation=elev_4 output=test_cross_section_slice_4
 r3.cross.rast --o input=volume_null elevation=elev_5 output=test_cross_section_slice_5
 r3.cross.rast --o input=volume_null elevation=elev_NAN output=test_cross_section_slice_NAN
-r3.cross.rast --o input=volume_null elevation=elev_cross output=test_cross_section_result
\ No newline at end of file
+r3.cross.rast --o input=volume_null elevation=elev_cross output=test_cross_section_result
+
+# Export of the references
+for i in `g.mlist type=rast pattern=test_cross_section_*` ; do r.out.ascii input=$i output=${i}.ref; done

Modified: grass/trunk/raster3d/r3.cross.rast/test_cross_section_result.ref
===================================================================
--- grass/trunk/raster3d/r3.cross.rast/test_cross_section_result.ref	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/raster3d/r3.cross.rast/test_cross_section_result.ref	2011-06-17 20:10:37 UTC (rev 46728)
@@ -4,11 +4,11 @@
 west: 0
 rows: 8
 cols: 10
-10 12 13 15 16 18 19 21 22 * 
-9 11 12 14 15 17 18 20 21 * 
-8 10 11 13 14 16 17 19 20 * 
 * * * * * * * * * * 
+4 6 7 9 10 12 13 15 16 * 
+5 7 8 10 11 13 14 16 17 * 
 6 8 9 11 12 14 15 17 18 * 
-5 7 8 10 11 13 14 16 17 * 
-4 6 7 9 10 12 13 15 16 * 
 * * * * * * * * * * 
+8 10 11 13 14 16 17 19 20 * 
+9 11 12 14 15 17 18 20 21 * 
+10 12 13 15 16 18 19 21 22 * 

Modified: grass/trunk/raster3d/r3.cross.rast/test_cross_section_slice_0.ref
===================================================================
--- grass/trunk/raster3d/r3.cross.rast/test_cross_section_slice_0.ref	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/raster3d/r3.cross.rast/test_cross_section_slice_0.ref	2011-06-17 20:10:37 UTC (rev 46728)
@@ -4,11 +4,11 @@
 west: 0
 rows: 8
 cols: 10
-10 11 12 13 14 15 16 17 18 19 
-9 10 11 12 13 14 15 16 17 18 
-8 9 10 11 12 13 14 15 16 17 
 * * * * * * * * * * 
+4 5 6 7 8 9 10 11 12 13 
+5 6 7 8 9 10 11 12 13 14 
 6 7 8 9 10 11 12 13 14 15 
-5 6 7 8 9 10 11 12 13 14 
-4 5 6 7 8 9 10 11 12 13 
 * * * * * * * * * * 
+8 9 10 11 12 13 14 15 16 17 
+9 10 11 12 13 14 15 16 17 18 
+10 11 12 13 14 15 16 17 18 19 

Modified: grass/trunk/raster3d/r3.cross.rast/test_cross_section_slice_1.ref
===================================================================
--- grass/trunk/raster3d/r3.cross.rast/test_cross_section_slice_1.ref	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/raster3d/r3.cross.rast/test_cross_section_slice_1.ref	2011-06-17 20:10:37 UTC (rev 46728)
@@ -4,11 +4,11 @@
 west: 0
 rows: 8
 cols: 10
-10 11 12 13 14 15 16 17 18 19 
-9 10 11 12 13 14 15 16 17 18 
-8 9 10 11 12 13 14 15 16 17 
 * * * * * * * * * * 
+4 5 6 7 8 9 10 11 12 13 
+5 6 7 8 9 10 11 12 13 14 
 6 7 8 9 10 11 12 13 14 15 
-5 6 7 8 9 10 11 12 13 14 
-4 5 6 7 8 9 10 11 12 13 
 * * * * * * * * * * 
+8 9 10 11 12 13 14 15 16 17 
+9 10 11 12 13 14 15 16 17 18 
+10 11 12 13 14 15 16 17 18 19 

Modified: grass/trunk/raster3d/r3.cross.rast/test_cross_section_slice_2.ref
===================================================================
--- grass/trunk/raster3d/r3.cross.rast/test_cross_section_slice_2.ref	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/raster3d/r3.cross.rast/test_cross_section_slice_2.ref	2011-06-17 20:10:37 UTC (rev 46728)
@@ -4,11 +4,11 @@
 west: 0
 rows: 8
 cols: 10
-11 12 13 14 15 16 17 18 19 20 
-10 11 12 13 14 15 16 17 18 19 
-9 10 11 12 13 14 15 16 17 18 
 * * * * * * * * * * 
+5 6 7 8 9 10 11 12 13 14 
+6 7 8 9 10 11 12 13 14 15 
 7 8 9 10 11 12 13 14 15 16 
-6 7 8 9 10 11 12 13 14 15 
-5 6 7 8 9 10 11 12 13 14 
 * * * * * * * * * * 
+9 10 11 12 13 14 15 16 17 18 
+10 11 12 13 14 15 16 17 18 19 
+11 12 13 14 15 16 17 18 19 20 

Modified: grass/trunk/raster3d/r3.cross.rast/test_cross_section_slice_3.ref
===================================================================
--- grass/trunk/raster3d/r3.cross.rast/test_cross_section_slice_3.ref	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/raster3d/r3.cross.rast/test_cross_section_slice_3.ref	2011-06-17 20:10:37 UTC (rev 46728)
@@ -4,11 +4,11 @@
 west: 0
 rows: 8
 cols: 10
-12 13 14 15 16 17 18 19 20 21 
-11 12 13 14 15 16 17 18 19 20 
-10 11 12 13 14 15 16 17 18 19 
 * * * * * * * * * * 
+6 7 8 9 10 11 12 13 14 15 
+7 8 9 10 11 12 13 14 15 16 
 8 9 10 11 12 13 14 15 16 17 
-7 8 9 10 11 12 13 14 15 16 
-6 7 8 9 10 11 12 13 14 15 
 * * * * * * * * * * 
+10 11 12 13 14 15 16 17 18 19 
+11 12 13 14 15 16 17 18 19 20 
+12 13 14 15 16 17 18 19 20 21 

Modified: grass/trunk/raster3d/r3.cross.rast/test_cross_section_slice_4.ref
===================================================================
--- grass/trunk/raster3d/r3.cross.rast/test_cross_section_slice_4.ref	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/raster3d/r3.cross.rast/test_cross_section_slice_4.ref	2011-06-17 20:10:37 UTC (rev 46728)
@@ -4,11 +4,11 @@
 west: 0
 rows: 8
 cols: 10
-13 14 15 16 17 18 19 20 21 22 
-12 13 14 15 16 17 18 19 20 21 
-11 12 13 14 15 16 17 18 19 20 
 * * * * * * * * * * 
+7 8 9 10 11 12 13 14 15 16 
+8 9 10 11 12 13 14 15 16 17 
 9 10 11 12 13 14 15 16 17 18 
-8 9 10 11 12 13 14 15 16 17 
-7 8 9 10 11 12 13 14 15 16 
 * * * * * * * * * * 
+11 12 13 14 15 16 17 18 19 20 
+12 13 14 15 16 17 18 19 20 21 
+13 14 15 16 17 18 19 20 21 22 

Modified: grass/trunk/raster3d/r3.cross.rast/test_cross_section_slice_5.ref
===================================================================
--- grass/trunk/raster3d/r3.cross.rast/test_cross_section_slice_5.ref	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/raster3d/r3.cross.rast/test_cross_section_slice_5.ref	2011-06-17 20:10:37 UTC (rev 46728)
@@ -4,11 +4,11 @@
 west: 0
 rows: 8
 cols: 10
-14 15 16 17 18 19 20 21 22 23 
-13 14 15 16 17 18 19 20 21 22 
-12 13 14 15 16 17 18 19 20 21 
 * * * * * * * * * * 
+8 9 10 11 12 13 14 15 16 17 
+9 10 11 12 13 14 15 16 17 18 
 10 11 12 13 14 15 16 17 18 19 
-9 10 11 12 13 14 15 16 17 18 
-8 9 10 11 12 13 14 15 16 17 
 * * * * * * * * * * 
+12 13 14 15 16 17 18 19 20 21 
+13 14 15 16 17 18 19 20 21 22 
+14 15 16 17 18 19 20 21 22 23 

Modified: grass/trunk/raster3d/r3.in.ascii/main.c
===================================================================
--- grass/trunk/raster3d/r3.in.ascii/main.c	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/raster3d/r3.in.ascii/main.c	2011-06-17 20:10:37 UTC (rev 46728)
@@ -244,13 +244,13 @@
                 /* From west to east */
                 col = x;
                 /* The default is to read rows from north to south */
-                row = region->rows - y - 1;
+                row = y;
                 /* From bottom to the top */
                 depth = z;
 
                 /* Read rows as from south to north */
                 if (rowOrder == ROW_ORDER_SOUTH_TO_NORTH)
-                    row = y;
+                    row = region->rows - y - 1;
 
                 /* Read XY layer from top to bottom */
                 if (depthOrder == DEPTH_ORDER_TOP_TO_BOTTOM)

Modified: grass/trunk/raster3d/r3.in.ascii/r3.in.ascii.html
===================================================================
--- grass/trunk/raster3d/r3.in.ascii/r3.in.ascii.html	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/raster3d/r3.in.ascii/r3.in.ascii.html	2011-06-17 20:10:37 UTC (rev 46728)
@@ -52,8 +52,8 @@
 is self explaining. The order option specifies the row and depth order of the data in the input file.
 The supported row/depth ordering is documented in the <A HREF="r3.out.ascii.html">r3.out.ascii</A> 
 manpage. The order of the data in the input file does not specifiy the data order in the 
-generated output raster3d map which is in any case <em>south -> north, bottom -> top</em> ordering. 
-So dependent on the order information the data is automatically imported into the correct internal ordering.
+generated output raster3d map which is in any case <em>north -> south, west -> east, bottom -> top</em> ordering. 
+So dependent on the order information the data is automatically imported into the correct internal coordinate system.
 <P>
 The version and order options are not mandatory. In case no version and order option is specified, 
 the default grass6 ascii format is assumed.
@@ -68,8 +68,8 @@
 
 4x3x2 sample. Note in case no specific ordering is specified in the input file the
 upper-left (NW) corner of the bottom level comes first. The according order option is: nsbt for
-north -> south, bottom -> top ordering. This is compatible with <em>r.in.ascii</em>
-for single level data.
+north -> south, bottom -> top ordering. This is identical with <em>r.in.ascii</em>
+for single level data. So the y coordinate is 0 at the northern edge.
 
 <div class="code"><pre>
 north: 3.0
@@ -81,12 +81,12 @@
 rows: 3
 cols: 4
 levels: 2
+x1,y1,z1  x2,y1,z1  x3,y1,z1  x4,y1,z1
+x1,y2,z1  x2,y2,z1  x3,y2,z1  x4,y2,z1
 x1,y3,z1  x2,y3,z1  x3,y3,z1  x4,y3,z1
-x1,y2,z1  x2,y2,z1  x3,y2,z1  x4,y2,z1
-x1,y1,z1  x2,y1,z1  x3,y1,z1  x4,y1,z1
+x1,y1,z2  x2,y1,z2  x3,y1,z2  x4,y1,z2
+x1,y2,z2  x2,y2,z2  x3,y2,z2  x4,y2,z2
 x1,y3,z2  x2,y3,z2  x3,y3,z2  x4,y3,z2
-x1,y2,z2  x2,y2,z2  x3,y2,z2  x4,y2,z2
-x1,y1,z2  x2,y1,z2  x3,y1,z2  x4,y1,z2
 </pre></div>
 
 Note that unit tests for r3.in.ascii are implemented in the <em>test.r3.out.ascii.sh</em> script located in 

Modified: grass/trunk/raster3d/r3.out.ascii/main.c
===================================================================
--- grass/trunk/raster3d/r3.out.ascii/main.c	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/raster3d/r3.out.ascii/main.c	2011-06-17 20:10:37 UTC (rev 46728)
@@ -249,13 +249,13 @@
                 /* The default is to write rows from north to south
                    to be r.in.ascii compatible 
                  */
-                row = rows - y - 1;
+                row = y;
                 /* From bottom to the top */
                 depth = z;
 
                 /* Write rows from south to north */
                 if (param.row->answer)
-                    row = y;
+                    row = rows - y - 1;
 
                 /* write XY layer from top to bottom */
                 if (param.depth->answer)

Modified: grass/trunk/raster3d/r3.out.ascii/test.r3.out.ascii.sh
===================================================================
--- grass/trunk/raster3d/r3.out.ascii/test.r3.out.ascii.sh	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/raster3d/r3.out.ascii/test.r3.out.ascii.sh	2011-06-17 20:10:37 UTC (rev 46728)
@@ -1,6 +1,6 @@
 # Tests for r3.out.ascii and r3.in.ascii
 # This script tests the export of voxel data using r3.out.ascii
-# as well as the inport of the generated data with r3.in.ascii 
+# as well as the import of the generated data with r3.in.ascii 
 # using different row and depth ordering options.
 
 # We set up a specific region in the
@@ -9,8 +9,7 @@
 # should work for UTM and LL test locations
 g.region s=0 n=80 w=0 e=120 b=0 t=50 res=10 res3=10 -p3
 # Now create several (float, double, null value) voxel map 
-# with value = col + row + depth. Beware the 
-# raster3d module count from south to north.
+# with value = col + row + depth. 
 r3.mapcalc --o expr="volume_float = float(col() + row() + depth())"
 r3.mapcalc --o expr="volume_double = double(col() + row() + depth())"
 # Add null value information
@@ -56,15 +55,15 @@
 # The created @raster maps should be identical to the map "volume_double_null"
 # The export of the created g3d map should use as @precision=0 for data validation
 # The same raster name is used for all the imported data and so for the validation reference file
-r3.in.ascii --o output=test_double_nsbt_null input=test_double_nsbt_null.ref nv=*
-r3.in.ascii --o output=test_double_nsbt_null input=test_double_snbt_null.ref nv=*
-r3.in.ascii --o output=test_double_nsbt_null input=test_double_nstb_null.ref nv=*
-r3.in.ascii --o output=test_double_nsbt_null input=test_double_sntb_null.ref nv=*
+r3.in.ascii --o output=test_double_nsbt_null input=test_double_nsbt_null.txt nv=*
+r3.in.ascii --o output=test_double_nsbt_null input=test_double_snbt_null.txt nv=*
+r3.in.ascii --o output=test_double_nsbt_null input=test_double_nstb_null.txt nv=*
+r3.in.ascii --o output=test_double_nsbt_null input=test_double_sntb_null.txt nv=*
 # Different precision and null values than default
-r3.in.ascii --o output=test_double_nsbt_null input=test_double_nsbt_null_prec5.ref nv=-1000
-r3.in.ascii --o output=test_double_nsbt_null input=test_double_sntb_null_prec8.ref nv=-2000
+r3.in.ascii --o output=test_double_nsbt_null input=test_double_nsbt_null_prec5.txt nv=-1000
+r3.in.ascii --o output=test_double_nsbt_null input=test_double_sntb_null_prec8.txt nv=-2000
 # Any row or depth order should be ignored in case grass6 compatibility is enabled
-r3.in.ascii --o output=test_double_nsbt_null input=test_double_nsbt_null_grass6_comp_1.ref
+r3.in.ascii --o output=test_double_nsbt_null input=test_double_nsbt_null_grass6_comp_1.txt
 
 # In this @preprocess step for the last test we create a large region and 
 # generate large input data to test the handling of large files

Modified: grass/trunk/raster3d/r3.out.ascii/test_double_nsbt_null.ref
===================================================================
--- grass/trunk/raster3d/r3.out.ascii/test_double_nsbt_null.ref	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/raster3d/r3.out.ascii/test_double_nsbt_null.ref	2011-06-17 20:10:37 UTC (rev 46728)
@@ -9,43 +9,43 @@
 rows: 8
 cols: 12
 levels: 5
-10 11 12 13 14 15 16 17 18 19 20 21 
-9 10 11 12 13 14 15 16 17 18 19 20 
-8 9 10 11 12 13 14 15 16 17 18 19 
 * * * * * * * * * * * * 
+4 5 6 7 8 9 10 11 12 13 14 15 
+5 6 7 8 9 10 11 12 13 14 15 16 
 6 7 8 9 10 11 12 13 14 15 16 17 
-5 6 7 8 9 10 11 12 13 14 15 16 
-4 5 6 7 8 9 10 11 12 13 14 15 
 * * * * * * * * * * * * 
-11 12 13 14 15 16 17 18 19 20 21 22 
+8 9 10 11 12 13 14 15 16 17 18 19 
+9 10 11 12 13 14 15 16 17 18 19 20 
 10 11 12 13 14 15 16 17 18 19 20 21 
-9 10 11 12 13 14 15 16 17 18 19 20 
 * * * * * * * * * * * * 
+5 6 7 8 9 10 11 12 13 14 15 16 
+6 7 8 9 10 11 12 13 14 15 16 17 
 7 8 9 10 11 12 13 14 15 16 17 18 
-6 7 8 9 10 11 12 13 14 15 16 17 
-5 6 7 8 9 10 11 12 13 14 15 16 
 * * * * * * * * * * * * 
-12 13 14 15 16 17 18 19 20 21 22 23 
+9 10 11 12 13 14 15 16 17 18 19 20 
+10 11 12 13 14 15 16 17 18 19 20 21 
 11 12 13 14 15 16 17 18 19 20 21 22 
-10 11 12 13 14 15 16 17 18 19 20 21 
 * * * * * * * * * * * * 
+6 7 8 9 10 11 12 13 14 15 16 17 
+7 8 9 10 11 12 13 14 15 16 17 18 
 8 9 10 11 12 13 14 15 16 17 18 19 
-7 8 9 10 11 12 13 14 15 16 17 18 
-6 7 8 9 10 11 12 13 14 15 16 17 
 * * * * * * * * * * * * 
-13 14 15 16 17 18 19 20 21 22 23 24 
+10 11 12 13 14 15 16 17 18 19 20 21 
+11 12 13 14 15 16 17 18 19 20 21 22 
 12 13 14 15 16 17 18 19 20 21 22 23 
-11 12 13 14 15 16 17 18 19 20 21 22 
 * * * * * * * * * * * * 
+7 8 9 10 11 12 13 14 15 16 17 18 
+8 9 10 11 12 13 14 15 16 17 18 19 
 9 10 11 12 13 14 15 16 17 18 19 20 
-8 9 10 11 12 13 14 15 16 17 18 19 
-7 8 9 10 11 12 13 14 15 16 17 18 
 * * * * * * * * * * * * 
-14 15 16 17 18 19 20 21 22 23 24 25 
+11 12 13 14 15 16 17 18 19 20 21 22 
+12 13 14 15 16 17 18 19 20 21 22 23 
 13 14 15 16 17 18 19 20 21 22 23 24 
-12 13 14 15 16 17 18 19 20 21 22 23 
 * * * * * * * * * * * * 
+8 9 10 11 12 13 14 15 16 17 18 19 
+9 10 11 12 13 14 15 16 17 18 19 20 
 10 11 12 13 14 15 16 17 18 19 20 21 
-9 10 11 12 13 14 15 16 17 18 19 20 
-8 9 10 11 12 13 14 15 16 17 18 19 
 * * * * * * * * * * * * 
+12 13 14 15 16 17 18 19 20 21 22 23 
+13 14 15 16 17 18 19 20 21 22 23 24 
+14 15 16 17 18 19 20 21 22 23 24 25 

Modified: grass/trunk/raster3d/r3.out.ascii/test_double_nsbt_null_grass6_comp_1.ref
===================================================================
--- grass/trunk/raster3d/r3.out.ascii/test_double_nsbt_null_grass6_comp_1.ref	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/raster3d/r3.out.ascii/test_double_nsbt_null_grass6_comp_1.ref	2011-06-17 20:10:37 UTC (rev 46728)
@@ -7,43 +7,43 @@
 rows: 8
 cols: 12
 levels: 5
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 * * * * * * * * * * * * 
+4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 
+5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
-5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
-4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 
 * * * * * * * * * * * * 
-11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 * * * * * * * * * * * * 
+5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
+6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
-6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
-5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
 * * * * * * * * * * * * 
-12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 * * * * * * * * * * * * 
+6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
-6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
 * * * * * * * * * * * * 
-13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
+11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
-11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 * * * * * * * * * * * * 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 * * * * * * * * * * * * 
-14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 25.000 
+11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
+12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
-12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
 * * * * * * * * * * * * 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 * * * * * * * * * * * * 
+12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
+13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
+14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 25.000 

Modified: grass/trunk/raster3d/r3.out.ascii/test_double_nsbt_null_grass6_comp_2.ref
===================================================================
--- grass/trunk/raster3d/r3.out.ascii/test_double_nsbt_null_grass6_comp_2.ref	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/raster3d/r3.out.ascii/test_double_nsbt_null_grass6_comp_2.ref	2011-06-17 20:10:37 UTC (rev 46728)
@@ -7,43 +7,43 @@
 rows: 8
 cols: 12
 levels: 5
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 * * * * * * * * * * * * 
+4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 
+5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
-5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
-4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 
 * * * * * * * * * * * * 
-11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 * * * * * * * * * * * * 
+5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
+6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
-6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
-5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
 * * * * * * * * * * * * 
-12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 * * * * * * * * * * * * 
+6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
-6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
 * * * * * * * * * * * * 
-13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
+11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
-11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 * * * * * * * * * * * * 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 * * * * * * * * * * * * 
-14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 25.000 
+11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
+12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
-12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
 * * * * * * * * * * * * 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 * * * * * * * * * * * * 
+12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
+13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
+14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 25.000 

Modified: grass/trunk/raster3d/r3.out.ascii/test_double_nsbt_null_grass6_comp_3.ref
===================================================================
--- grass/trunk/raster3d/r3.out.ascii/test_double_nsbt_null_grass6_comp_3.ref	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/raster3d/r3.out.ascii/test_double_nsbt_null_grass6_comp_3.ref	2011-06-17 20:10:37 UTC (rev 46728)
@@ -7,43 +7,43 @@
 rows: 8
 cols: 12
 levels: 5
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 * * * * * * * * * * * * 
+4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 
+5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
-5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
-4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 
 * * * * * * * * * * * * 
-11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 * * * * * * * * * * * * 
+5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
+6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
-6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
-5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
 * * * * * * * * * * * * 
-12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 * * * * * * * * * * * * 
+6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
-6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
 * * * * * * * * * * * * 
-13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
+11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
-11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 * * * * * * * * * * * * 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 * * * * * * * * * * * * 
-14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 25.000 
+11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
+12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
-12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
 * * * * * * * * * * * * 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 * * * * * * * * * * * * 
+12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
+13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
+14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 25.000 

Modified: grass/trunk/raster3d/r3.out.ascii/test_double_nsbt_null_no_header.ref
===================================================================
--- grass/trunk/raster3d/r3.out.ascii/test_double_nsbt_null_no_header.ref	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/raster3d/r3.out.ascii/test_double_nsbt_null_no_header.ref	2011-06-17 20:10:37 UTC (rev 46728)
@@ -1,40 +1,40 @@
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 * * * * * * * * * * * * 
+4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 
+5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
-5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
-4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 
 * * * * * * * * * * * * 
-11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 * * * * * * * * * * * * 
+5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
+6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
-6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
-5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
 * * * * * * * * * * * * 
-12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 * * * * * * * * * * * * 
+6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
-6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
 * * * * * * * * * * * * 
-13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
+11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
-11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 * * * * * * * * * * * * 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 * * * * * * * * * * * * 
-14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 25.000 
+11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
+12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
-12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
 * * * * * * * * * * * * 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 * * * * * * * * * * * * 
+12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
+13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
+14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 25.000 

Modified: grass/trunk/raster3d/r3.out.ascii/test_double_nsbt_null_prec5.ref
===================================================================
--- grass/trunk/raster3d/r3.out.ascii/test_double_nsbt_null_prec5.ref	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/raster3d/r3.out.ascii/test_double_nsbt_null_prec5.ref	2011-06-17 20:10:37 UTC (rev 46728)
@@ -9,43 +9,43 @@
 rows: 8
 cols: 12
 levels: 5
-10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 
-9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 
-8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 
 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 
+4.00000 5.00000 6.00000 7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 
+5.00000 6.00000 7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 
 6.00000 7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 
-5.00000 6.00000 7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 
-4.00000 5.00000 6.00000 7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 
 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 
-11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 
+8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 
+9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 
 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 
-9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 
 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 
+5.00000 6.00000 7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 
+6.00000 7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 
 7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 
-6.00000 7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 
-5.00000 6.00000 7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 
 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 
-12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 23.00000 
+9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 
+10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 
 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 
-10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 
 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 
+6.00000 7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 
+7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 
 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 
-7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 
-6.00000 7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 
 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 
-13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 23.00000 24.00000 
+10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 
+11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 
 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 23.00000 
-11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 
 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 
+7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 
+8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 
 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 
-8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 
-7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 
 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 
-14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 23.00000 24.00000 25.00000 
+11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 
+12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 23.00000 
 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 23.00000 24.00000 
-12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 23.00000 
 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 
+8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 
+9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 
 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 
-9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 
-8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 
 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 
+12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 23.00000 
+13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 23.00000 24.00000 
+14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 23.00000 24.00000 25.00000 

Modified: grass/trunk/raster3d/r3.out.ascii/test_double_nstb_null.ref
===================================================================
--- grass/trunk/raster3d/r3.out.ascii/test_double_nstb_null.ref	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/raster3d/r3.out.ascii/test_double_nstb_null.ref	2011-06-17 20:10:37 UTC (rev 46728)
@@ -9,43 +9,43 @@
 rows: 8
 cols: 12
 levels: 5
-14 15 16 17 18 19 20 21 22 23 24 25 
-13 14 15 16 17 18 19 20 21 22 23 24 
-12 13 14 15 16 17 18 19 20 21 22 23 
 * * * * * * * * * * * * 
+8 9 10 11 12 13 14 15 16 17 18 19 
+9 10 11 12 13 14 15 16 17 18 19 20 
 10 11 12 13 14 15 16 17 18 19 20 21 
-9 10 11 12 13 14 15 16 17 18 19 20 
-8 9 10 11 12 13 14 15 16 17 18 19 
 * * * * * * * * * * * * 
+12 13 14 15 16 17 18 19 20 21 22 23 
 13 14 15 16 17 18 19 20 21 22 23 24 
-12 13 14 15 16 17 18 19 20 21 22 23 
-11 12 13 14 15 16 17 18 19 20 21 22 
+14 15 16 17 18 19 20 21 22 23 24 25 
 * * * * * * * * * * * * 
+7 8 9 10 11 12 13 14 15 16 17 18 
+8 9 10 11 12 13 14 15 16 17 18 19 
 9 10 11 12 13 14 15 16 17 18 19 20 
-8 9 10 11 12 13 14 15 16 17 18 19 
-7 8 9 10 11 12 13 14 15 16 17 18 
 * * * * * * * * * * * * 
+11 12 13 14 15 16 17 18 19 20 21 22 
 12 13 14 15 16 17 18 19 20 21 22 23 
-11 12 13 14 15 16 17 18 19 20 21 22 
-10 11 12 13 14 15 16 17 18 19 20 21 
+13 14 15 16 17 18 19 20 21 22 23 24 
 * * * * * * * * * * * * 
+6 7 8 9 10 11 12 13 14 15 16 17 
+7 8 9 10 11 12 13 14 15 16 17 18 
 8 9 10 11 12 13 14 15 16 17 18 19 
-7 8 9 10 11 12 13 14 15 16 17 18 
-6 7 8 9 10 11 12 13 14 15 16 17 
 * * * * * * * * * * * * 
+10 11 12 13 14 15 16 17 18 19 20 21 
 11 12 13 14 15 16 17 18 19 20 21 22 
-10 11 12 13 14 15 16 17 18 19 20 21 
-9 10 11 12 13 14 15 16 17 18 19 20 
+12 13 14 15 16 17 18 19 20 21 22 23 
 * * * * * * * * * * * * 
+5 6 7 8 9 10 11 12 13 14 15 16 
+6 7 8 9 10 11 12 13 14 15 16 17 
 7 8 9 10 11 12 13 14 15 16 17 18 
-6 7 8 9 10 11 12 13 14 15 16 17 
-5 6 7 8 9 10 11 12 13 14 15 16 
 * * * * * * * * * * * * 
+9 10 11 12 13 14 15 16 17 18 19 20 
 10 11 12 13 14 15 16 17 18 19 20 21 
-9 10 11 12 13 14 15 16 17 18 19 20 
-8 9 10 11 12 13 14 15 16 17 18 19 
+11 12 13 14 15 16 17 18 19 20 21 22 
 * * * * * * * * * * * * 
+4 5 6 7 8 9 10 11 12 13 14 15 
+5 6 7 8 9 10 11 12 13 14 15 16 
 6 7 8 9 10 11 12 13 14 15 16 17 
-5 6 7 8 9 10 11 12 13 14 15 16 
-4 5 6 7 8 9 10 11 12 13 14 15 
 * * * * * * * * * * * * 
+8 9 10 11 12 13 14 15 16 17 18 19 
+9 10 11 12 13 14 15 16 17 18 19 20 
+10 11 12 13 14 15 16 17 18 19 20 21 

Modified: grass/trunk/raster3d/r3.out.ascii/test_double_snbt_null.ref
===================================================================
--- grass/trunk/raster3d/r3.out.ascii/test_double_snbt_null.ref	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/raster3d/r3.out.ascii/test_double_snbt_null.ref	2011-06-17 20:10:37 UTC (rev 46728)
@@ -9,43 +9,43 @@
 rows: 8
 cols: 12
 levels: 5
+10 11 12 13 14 15 16 17 18 19 20 21 
+9 10 11 12 13 14 15 16 17 18 19 20 
+8 9 10 11 12 13 14 15 16 17 18 19 
 * * * * * * * * * * * * 
+6 7 8 9 10 11 12 13 14 15 16 17 
+5 6 7 8 9 10 11 12 13 14 15 16 
 4 5 6 7 8 9 10 11 12 13 14 15 
-5 6 7 8 9 10 11 12 13 14 15 16 
-6 7 8 9 10 11 12 13 14 15 16 17 
 * * * * * * * * * * * * 
-8 9 10 11 12 13 14 15 16 17 18 19 
+11 12 13 14 15 16 17 18 19 20 21 22 
+10 11 12 13 14 15 16 17 18 19 20 21 
 9 10 11 12 13 14 15 16 17 18 19 20 
-10 11 12 13 14 15 16 17 18 19 20 21 
 * * * * * * * * * * * * 
+7 8 9 10 11 12 13 14 15 16 17 18 
+6 7 8 9 10 11 12 13 14 15 16 17 
 5 6 7 8 9 10 11 12 13 14 15 16 
-6 7 8 9 10 11 12 13 14 15 16 17 
-7 8 9 10 11 12 13 14 15 16 17 18 
 * * * * * * * * * * * * 
-9 10 11 12 13 14 15 16 17 18 19 20 
+12 13 14 15 16 17 18 19 20 21 22 23 
+11 12 13 14 15 16 17 18 19 20 21 22 
 10 11 12 13 14 15 16 17 18 19 20 21 
-11 12 13 14 15 16 17 18 19 20 21 22 
 * * * * * * * * * * * * 
+8 9 10 11 12 13 14 15 16 17 18 19 
+7 8 9 10 11 12 13 14 15 16 17 18 
 6 7 8 9 10 11 12 13 14 15 16 17 
-7 8 9 10 11 12 13 14 15 16 17 18 
-8 9 10 11 12 13 14 15 16 17 18 19 
 * * * * * * * * * * * * 
-10 11 12 13 14 15 16 17 18 19 20 21 
+13 14 15 16 17 18 19 20 21 22 23 24 
+12 13 14 15 16 17 18 19 20 21 22 23 
 11 12 13 14 15 16 17 18 19 20 21 22 
-12 13 14 15 16 17 18 19 20 21 22 23 
 * * * * * * * * * * * * 
+9 10 11 12 13 14 15 16 17 18 19 20 
+8 9 10 11 12 13 14 15 16 17 18 19 
 7 8 9 10 11 12 13 14 15 16 17 18 
-8 9 10 11 12 13 14 15 16 17 18 19 
-9 10 11 12 13 14 15 16 17 18 19 20 
 * * * * * * * * * * * * 
-11 12 13 14 15 16 17 18 19 20 21 22 
+14 15 16 17 18 19 20 21 22 23 24 25 
+13 14 15 16 17 18 19 20 21 22 23 24 
 12 13 14 15 16 17 18 19 20 21 22 23 
-13 14 15 16 17 18 19 20 21 22 23 24 
 * * * * * * * * * * * * 
+10 11 12 13 14 15 16 17 18 19 20 21 
+9 10 11 12 13 14 15 16 17 18 19 20 
 8 9 10 11 12 13 14 15 16 17 18 19 
-9 10 11 12 13 14 15 16 17 18 19 20 
-10 11 12 13 14 15 16 17 18 19 20 21 
 * * * * * * * * * * * * 
-12 13 14 15 16 17 18 19 20 21 22 23 
-13 14 15 16 17 18 19 20 21 22 23 24 
-14 15 16 17 18 19 20 21 22 23 24 25 

Modified: grass/trunk/raster3d/r3.out.ascii/test_double_sntb_null.ref
===================================================================
--- grass/trunk/raster3d/r3.out.ascii/test_double_sntb_null.ref	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/raster3d/r3.out.ascii/test_double_sntb_null.ref	2011-06-17 20:10:37 UTC (rev 46728)
@@ -9,43 +9,43 @@
 rows: 8
 cols: 12
 levels: 5
+14 15 16 17 18 19 20 21 22 23 24 25 
+13 14 15 16 17 18 19 20 21 22 23 24 
+12 13 14 15 16 17 18 19 20 21 22 23 
 * * * * * * * * * * * * 
+10 11 12 13 14 15 16 17 18 19 20 21 
+9 10 11 12 13 14 15 16 17 18 19 20 
 8 9 10 11 12 13 14 15 16 17 18 19 
-9 10 11 12 13 14 15 16 17 18 19 20 
-10 11 12 13 14 15 16 17 18 19 20 21 
 * * * * * * * * * * * * 
+13 14 15 16 17 18 19 20 21 22 23 24 
 12 13 14 15 16 17 18 19 20 21 22 23 
-13 14 15 16 17 18 19 20 21 22 23 24 
-14 15 16 17 18 19 20 21 22 23 24 25 
+11 12 13 14 15 16 17 18 19 20 21 22 
 * * * * * * * * * * * * 
+9 10 11 12 13 14 15 16 17 18 19 20 
+8 9 10 11 12 13 14 15 16 17 18 19 
 7 8 9 10 11 12 13 14 15 16 17 18 
-8 9 10 11 12 13 14 15 16 17 18 19 
-9 10 11 12 13 14 15 16 17 18 19 20 
 * * * * * * * * * * * * 
+12 13 14 15 16 17 18 19 20 21 22 23 
 11 12 13 14 15 16 17 18 19 20 21 22 
-12 13 14 15 16 17 18 19 20 21 22 23 
-13 14 15 16 17 18 19 20 21 22 23 24 
+10 11 12 13 14 15 16 17 18 19 20 21 
 * * * * * * * * * * * * 
+8 9 10 11 12 13 14 15 16 17 18 19 
+7 8 9 10 11 12 13 14 15 16 17 18 
 6 7 8 9 10 11 12 13 14 15 16 17 
-7 8 9 10 11 12 13 14 15 16 17 18 
-8 9 10 11 12 13 14 15 16 17 18 19 
 * * * * * * * * * * * * 
+11 12 13 14 15 16 17 18 19 20 21 22 
 10 11 12 13 14 15 16 17 18 19 20 21 
-11 12 13 14 15 16 17 18 19 20 21 22 
-12 13 14 15 16 17 18 19 20 21 22 23 
+9 10 11 12 13 14 15 16 17 18 19 20 
 * * * * * * * * * * * * 
+7 8 9 10 11 12 13 14 15 16 17 18 
+6 7 8 9 10 11 12 13 14 15 16 17 
 5 6 7 8 9 10 11 12 13 14 15 16 
-6 7 8 9 10 11 12 13 14 15 16 17 
-7 8 9 10 11 12 13 14 15 16 17 18 
 * * * * * * * * * * * * 
+10 11 12 13 14 15 16 17 18 19 20 21 
 9 10 11 12 13 14 15 16 17 18 19 20 
-10 11 12 13 14 15 16 17 18 19 20 21 
-11 12 13 14 15 16 17 18 19 20 21 22 
+8 9 10 11 12 13 14 15 16 17 18 19 
 * * * * * * * * * * * * 
+6 7 8 9 10 11 12 13 14 15 16 17 
+5 6 7 8 9 10 11 12 13 14 15 16 
 4 5 6 7 8 9 10 11 12 13 14 15 
-5 6 7 8 9 10 11 12 13 14 15 16 
-6 7 8 9 10 11 12 13 14 15 16 17 
 * * * * * * * * * * * * 
-8 9 10 11 12 13 14 15 16 17 18 19 
-9 10 11 12 13 14 15 16 17 18 19 20 
-10 11 12 13 14 15 16 17 18 19 20 21 

Modified: grass/trunk/raster3d/r3.out.ascii/test_double_sntb_null_prec8.ref
===================================================================
--- grass/trunk/raster3d/r3.out.ascii/test_double_sntb_null_prec8.ref	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/raster3d/r3.out.ascii/test_double_sntb_null_prec8.ref	2011-06-17 20:10:37 UTC (rev 46728)
@@ -9,43 +9,43 @@
 rows: 8
 cols: 12
 levels: 5
+14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 23.00000000 24.00000000 25.00000000 
+13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 23.00000000 24.00000000 
+12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 23.00000000 
 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 
+10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 
+9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 
 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 
-9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 
-10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 
 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 
+13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 23.00000000 24.00000000 
 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 23.00000000 
-13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 23.00000000 24.00000000 
-14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 23.00000000 24.00000000 25.00000000 
+11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 
 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 
+9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 
+8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 
 7.00000000 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 
-8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 
-9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 
 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 
+12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 23.00000000 
 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 
-12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 23.00000000 
-13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 23.00000000 24.00000000 
+10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 
 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 
+8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 
+7.00000000 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 
 6.00000000 7.00000000 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 
-7.00000000 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 
-8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 
 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 
+11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 
 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 
-11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 
-12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 23.00000000 
+9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 
 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 
+7.00000000 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 
+6.00000000 7.00000000 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 
 5.00000000 6.00000000 7.00000000 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 
-6.00000000 7.00000000 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 
-7.00000000 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 
 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 
+10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 
 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 
-10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 
-11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 
+8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 
 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 
+6.00000000 7.00000000 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 
+5.00000000 6.00000000 7.00000000 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 
 4.00000000 5.00000000 6.00000000 7.00000000 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 
-5.00000000 6.00000000 7.00000000 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 
-6.00000000 7.00000000 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 
 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 
-8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 
-9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 
-10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 

Modified: grass/trunk/raster3d/r3.out.ascii/test_float_nsbt_null.ref
===================================================================
--- grass/trunk/raster3d/r3.out.ascii/test_float_nsbt_null.ref	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/raster3d/r3.out.ascii/test_float_nsbt_null.ref	2011-06-17 20:10:37 UTC (rev 46728)
@@ -9,43 +9,43 @@
 rows: 8
 cols: 12
 levels: 5
-10 11 12 13 14 15 16 17 18 19 20 21 
-9 10 11 12 13 14 15 16 17 18 19 20 
-8 9 10 11 12 13 14 15 16 17 18 19 
 * * * * * * * * * * * * 
+4 5 6 7 8 9 10 11 12 13 14 15 
+5 6 7 8 9 10 11 12 13 14 15 16 
 6 7 8 9 10 11 12 13 14 15 16 17 
-5 6 7 8 9 10 11 12 13 14 15 16 
-4 5 6 7 8 9 10 11 12 13 14 15 
 * * * * * * * * * * * * 
-11 12 13 14 15 16 17 18 19 20 21 22 
+8 9 10 11 12 13 14 15 16 17 18 19 
+9 10 11 12 13 14 15 16 17 18 19 20 
 10 11 12 13 14 15 16 17 18 19 20 21 
-9 10 11 12 13 14 15 16 17 18 19 20 
 * * * * * * * * * * * * 
+5 6 7 8 9 10 11 12 13 14 15 16 
+6 7 8 9 10 11 12 13 14 15 16 17 
 7 8 9 10 11 12 13 14 15 16 17 18 
-6 7 8 9 10 11 12 13 14 15 16 17 
-5 6 7 8 9 10 11 12 13 14 15 16 
 * * * * * * * * * * * * 
-12 13 14 15 16 17 18 19 20 21 22 23 
+9 10 11 12 13 14 15 16 17 18 19 20 
+10 11 12 13 14 15 16 17 18 19 20 21 
 11 12 13 14 15 16 17 18 19 20 21 22 
-10 11 12 13 14 15 16 17 18 19 20 21 
 * * * * * * * * * * * * 
+6 7 8 9 10 11 12 13 14 15 16 17 
+7 8 9 10 11 12 13 14 15 16 17 18 
 8 9 10 11 12 13 14 15 16 17 18 19 
-7 8 9 10 11 12 13 14 15 16 17 18 
-6 7 8 9 10 11 12 13 14 15 16 17 
 * * * * * * * * * * * * 
-13 14 15 16 17 18 19 20 21 22 23 24 
+10 11 12 13 14 15 16 17 18 19 20 21 
+11 12 13 14 15 16 17 18 19 20 21 22 
 12 13 14 15 16 17 18 19 20 21 22 23 
-11 12 13 14 15 16 17 18 19 20 21 22 
 * * * * * * * * * * * * 
+7 8 9 10 11 12 13 14 15 16 17 18 
+8 9 10 11 12 13 14 15 16 17 18 19 
 9 10 11 12 13 14 15 16 17 18 19 20 
-8 9 10 11 12 13 14 15 16 17 18 19 
-7 8 9 10 11 12 13 14 15 16 17 18 
 * * * * * * * * * * * * 
-14 15 16 17 18 19 20 21 22 23 24 25 
+11 12 13 14 15 16 17 18 19 20 21 22 
+12 13 14 15 16 17 18 19 20 21 22 23 
 13 14 15 16 17 18 19 20 21 22 23 24 
-12 13 14 15 16 17 18 19 20 21 22 23 
 * * * * * * * * * * * * 
+8 9 10 11 12 13 14 15 16 17 18 19 
+9 10 11 12 13 14 15 16 17 18 19 20 
 10 11 12 13 14 15 16 17 18 19 20 21 
-9 10 11 12 13 14 15 16 17 18 19 20 
-8 9 10 11 12 13 14 15 16 17 18 19 
 * * * * * * * * * * * * 
+12 13 14 15 16 17 18 19 20 21 22 23 
+13 14 15 16 17 18 19 20 21 22 23 24 
+14 15 16 17 18 19 20 21 22 23 24 25 

Modified: grass/trunk/raster3d/r3.out.ascii/test_float_nsbt_null_grass6_comp_1.ref
===================================================================
--- grass/trunk/raster3d/r3.out.ascii/test_float_nsbt_null_grass6_comp_1.ref	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/raster3d/r3.out.ascii/test_float_nsbt_null_grass6_comp_1.ref	2011-06-17 20:10:37 UTC (rev 46728)
@@ -7,43 +7,43 @@
 rows: 8
 cols: 12
 levels: 5
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 * * * * * * * * * * * * 
+4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 
+5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
-5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
-4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 
 * * * * * * * * * * * * 
-11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 * * * * * * * * * * * * 
+5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
+6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
-6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
-5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
 * * * * * * * * * * * * 
-12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 * * * * * * * * * * * * 
+6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
-6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
 * * * * * * * * * * * * 
-13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
+11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
-11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 * * * * * * * * * * * * 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 * * * * * * * * * * * * 
-14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 25.000 
+11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
+12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
-12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
 * * * * * * * * * * * * 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 * * * * * * * * * * * * 
+12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
+13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
+14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 25.000 

Modified: grass/trunk/raster3d/r3.out.ascii/test_float_nsbt_null_grass6_comp_2.ref
===================================================================
--- grass/trunk/raster3d/r3.out.ascii/test_float_nsbt_null_grass6_comp_2.ref	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/raster3d/r3.out.ascii/test_float_nsbt_null_grass6_comp_2.ref	2011-06-17 20:10:37 UTC (rev 46728)
@@ -7,43 +7,43 @@
 rows: 8
 cols: 12
 levels: 5
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 * * * * * * * * * * * * 
+4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 
+5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
-5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
-4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 
 * * * * * * * * * * * * 
-11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 * * * * * * * * * * * * 
+5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
+6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
-6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
-5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
 * * * * * * * * * * * * 
-12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 * * * * * * * * * * * * 
+6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
-6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
 * * * * * * * * * * * * 
-13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
+11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
-11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 * * * * * * * * * * * * 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 * * * * * * * * * * * * 
-14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 25.000 
+11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
+12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
-12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
 * * * * * * * * * * * * 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 * * * * * * * * * * * * 
+12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
+13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
+14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 25.000 

Modified: grass/trunk/raster3d/r3.out.ascii/test_float_nsbt_null_grass6_comp_3.ref
===================================================================
--- grass/trunk/raster3d/r3.out.ascii/test_float_nsbt_null_grass6_comp_3.ref	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/raster3d/r3.out.ascii/test_float_nsbt_null_grass6_comp_3.ref	2011-06-17 20:10:37 UTC (rev 46728)
@@ -7,43 +7,43 @@
 rows: 8
 cols: 12
 levels: 5
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 * * * * * * * * * * * * 
+4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 
+5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
-5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
-4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 
 * * * * * * * * * * * * 
-11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 * * * * * * * * * * * * 
+5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
+6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
-6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
-5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
 * * * * * * * * * * * * 
-12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 * * * * * * * * * * * * 
+6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
-6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
 * * * * * * * * * * * * 
-13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
+11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
-11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 * * * * * * * * * * * * 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 * * * * * * * * * * * * 
-14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 25.000 
+11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
+12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
-12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
 * * * * * * * * * * * * 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 * * * * * * * * * * * * 
+12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
+13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
+14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 25.000 

Modified: grass/trunk/raster3d/r3.out.ascii/test_float_nsbt_null_no_header.ref
===================================================================
--- grass/trunk/raster3d/r3.out.ascii/test_float_nsbt_null_no_header.ref	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/raster3d/r3.out.ascii/test_float_nsbt_null_no_header.ref	2011-06-17 20:10:37 UTC (rev 46728)
@@ -1,40 +1,40 @@
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 * * * * * * * * * * * * 
+4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 
+5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
-5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
-4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 
 * * * * * * * * * * * * 
-11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 * * * * * * * * * * * * 
+5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
+6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
-6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
-5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
 * * * * * * * * * * * * 
-12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 * * * * * * * * * * * * 
+6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
-6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
 * * * * * * * * * * * * 
-13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
+11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
-11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 * * * * * * * * * * * * 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 * * * * * * * * * * * * 
-14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 25.000 
+11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
+12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
-12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
 * * * * * * * * * * * * 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 * * * * * * * * * * * * 
+12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
+13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
+14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 25.000 

Modified: grass/trunk/raster3d/r3.out.ascii/test_float_nsbt_null_prec5.ref
===================================================================
--- grass/trunk/raster3d/r3.out.ascii/test_float_nsbt_null_prec5.ref	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/raster3d/r3.out.ascii/test_float_nsbt_null_prec5.ref	2011-06-17 20:10:37 UTC (rev 46728)
@@ -9,43 +9,43 @@
 rows: 8
 cols: 12
 levels: 5
-10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 
-9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 
-8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 
 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 
+4.00000 5.00000 6.00000 7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 
+5.00000 6.00000 7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 
 6.00000 7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 
-5.00000 6.00000 7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 
-4.00000 5.00000 6.00000 7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 
 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 
-11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 
+8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 
+9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 
 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 
-9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 
 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 
+5.00000 6.00000 7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 
+6.00000 7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 
 7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 
-6.00000 7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 
-5.00000 6.00000 7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 
 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 
-12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 23.00000 
+9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 
+10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 
 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 
-10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 
 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 
+6.00000 7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 
+7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 
 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 
-7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 
-6.00000 7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 
 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 
-13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 23.00000 24.00000 
+10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 
+11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 
 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 23.00000 
-11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 
 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 
+7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 
+8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 
 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 
-8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 
-7.00000 8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 
 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 
-14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 23.00000 24.00000 25.00000 
+11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 
+12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 23.00000 
 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 23.00000 24.00000 
-12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 23.00000 
 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 
+8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 
+9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 
 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 
-9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 
-8.00000 9.00000 10.00000 11.00000 12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 
 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 -1000 
+12.00000 13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 23.00000 
+13.00000 14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 23.00000 24.00000 
+14.00000 15.00000 16.00000 17.00000 18.00000 19.00000 20.00000 21.00000 22.00000 23.00000 24.00000 25.00000 

Modified: grass/trunk/raster3d/r3.out.ascii/test_float_nstb_null.ref
===================================================================
--- grass/trunk/raster3d/r3.out.ascii/test_float_nstb_null.ref	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/raster3d/r3.out.ascii/test_float_nstb_null.ref	2011-06-17 20:10:37 UTC (rev 46728)
@@ -9,43 +9,43 @@
 rows: 8
 cols: 12
 levels: 5
-14 15 16 17 18 19 20 21 22 23 24 25 
-13 14 15 16 17 18 19 20 21 22 23 24 
-12 13 14 15 16 17 18 19 20 21 22 23 
 * * * * * * * * * * * * 
+8 9 10 11 12 13 14 15 16 17 18 19 
+9 10 11 12 13 14 15 16 17 18 19 20 
 10 11 12 13 14 15 16 17 18 19 20 21 
-9 10 11 12 13 14 15 16 17 18 19 20 
-8 9 10 11 12 13 14 15 16 17 18 19 
 * * * * * * * * * * * * 
+12 13 14 15 16 17 18 19 20 21 22 23 
 13 14 15 16 17 18 19 20 21 22 23 24 
-12 13 14 15 16 17 18 19 20 21 22 23 
-11 12 13 14 15 16 17 18 19 20 21 22 
+14 15 16 17 18 19 20 21 22 23 24 25 
 * * * * * * * * * * * * 
+7 8 9 10 11 12 13 14 15 16 17 18 
+8 9 10 11 12 13 14 15 16 17 18 19 
 9 10 11 12 13 14 15 16 17 18 19 20 
-8 9 10 11 12 13 14 15 16 17 18 19 
-7 8 9 10 11 12 13 14 15 16 17 18 
 * * * * * * * * * * * * 
+11 12 13 14 15 16 17 18 19 20 21 22 
 12 13 14 15 16 17 18 19 20 21 22 23 
-11 12 13 14 15 16 17 18 19 20 21 22 
-10 11 12 13 14 15 16 17 18 19 20 21 
+13 14 15 16 17 18 19 20 21 22 23 24 
 * * * * * * * * * * * * 
+6 7 8 9 10 11 12 13 14 15 16 17 
+7 8 9 10 11 12 13 14 15 16 17 18 
 8 9 10 11 12 13 14 15 16 17 18 19 
-7 8 9 10 11 12 13 14 15 16 17 18 
-6 7 8 9 10 11 12 13 14 15 16 17 
 * * * * * * * * * * * * 
+10 11 12 13 14 15 16 17 18 19 20 21 
 11 12 13 14 15 16 17 18 19 20 21 22 
-10 11 12 13 14 15 16 17 18 19 20 21 
-9 10 11 12 13 14 15 16 17 18 19 20 
+12 13 14 15 16 17 18 19 20 21 22 23 
 * * * * * * * * * * * * 
+5 6 7 8 9 10 11 12 13 14 15 16 
+6 7 8 9 10 11 12 13 14 15 16 17 
 7 8 9 10 11 12 13 14 15 16 17 18 
-6 7 8 9 10 11 12 13 14 15 16 17 
-5 6 7 8 9 10 11 12 13 14 15 16 
 * * * * * * * * * * * * 
+9 10 11 12 13 14 15 16 17 18 19 20 
 10 11 12 13 14 15 16 17 18 19 20 21 
-9 10 11 12 13 14 15 16 17 18 19 20 
-8 9 10 11 12 13 14 15 16 17 18 19 
+11 12 13 14 15 16 17 18 19 20 21 22 
 * * * * * * * * * * * * 
+4 5 6 7 8 9 10 11 12 13 14 15 
+5 6 7 8 9 10 11 12 13 14 15 16 
 6 7 8 9 10 11 12 13 14 15 16 17 
-5 6 7 8 9 10 11 12 13 14 15 16 
-4 5 6 7 8 9 10 11 12 13 14 15 
 * * * * * * * * * * * * 
+8 9 10 11 12 13 14 15 16 17 18 19 
+9 10 11 12 13 14 15 16 17 18 19 20 
+10 11 12 13 14 15 16 17 18 19 20 21 

Modified: grass/trunk/raster3d/r3.out.ascii/test_float_snbt_null.ref
===================================================================
--- grass/trunk/raster3d/r3.out.ascii/test_float_snbt_null.ref	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/raster3d/r3.out.ascii/test_float_snbt_null.ref	2011-06-17 20:10:37 UTC (rev 46728)
@@ -9,43 +9,43 @@
 rows: 8
 cols: 12
 levels: 5
+10 11 12 13 14 15 16 17 18 19 20 21 
+9 10 11 12 13 14 15 16 17 18 19 20 
+8 9 10 11 12 13 14 15 16 17 18 19 
 * * * * * * * * * * * * 
+6 7 8 9 10 11 12 13 14 15 16 17 
+5 6 7 8 9 10 11 12 13 14 15 16 
 4 5 6 7 8 9 10 11 12 13 14 15 
-5 6 7 8 9 10 11 12 13 14 15 16 
-6 7 8 9 10 11 12 13 14 15 16 17 
 * * * * * * * * * * * * 
-8 9 10 11 12 13 14 15 16 17 18 19 
+11 12 13 14 15 16 17 18 19 20 21 22 
+10 11 12 13 14 15 16 17 18 19 20 21 
 9 10 11 12 13 14 15 16 17 18 19 20 
-10 11 12 13 14 15 16 17 18 19 20 21 
 * * * * * * * * * * * * 
+7 8 9 10 11 12 13 14 15 16 17 18 
+6 7 8 9 10 11 12 13 14 15 16 17 
 5 6 7 8 9 10 11 12 13 14 15 16 
-6 7 8 9 10 11 12 13 14 15 16 17 
-7 8 9 10 11 12 13 14 15 16 17 18 
 * * * * * * * * * * * * 
-9 10 11 12 13 14 15 16 17 18 19 20 
+12 13 14 15 16 17 18 19 20 21 22 23 
+11 12 13 14 15 16 17 18 19 20 21 22 
 10 11 12 13 14 15 16 17 18 19 20 21 
-11 12 13 14 15 16 17 18 19 20 21 22 
 * * * * * * * * * * * * 
+8 9 10 11 12 13 14 15 16 17 18 19 
+7 8 9 10 11 12 13 14 15 16 17 18 
 6 7 8 9 10 11 12 13 14 15 16 17 
-7 8 9 10 11 12 13 14 15 16 17 18 
-8 9 10 11 12 13 14 15 16 17 18 19 
 * * * * * * * * * * * * 
-10 11 12 13 14 15 16 17 18 19 20 21 
+13 14 15 16 17 18 19 20 21 22 23 24 
+12 13 14 15 16 17 18 19 20 21 22 23 
 11 12 13 14 15 16 17 18 19 20 21 22 
-12 13 14 15 16 17 18 19 20 21 22 23 
 * * * * * * * * * * * * 
+9 10 11 12 13 14 15 16 17 18 19 20 
+8 9 10 11 12 13 14 15 16 17 18 19 
 7 8 9 10 11 12 13 14 15 16 17 18 
-8 9 10 11 12 13 14 15 16 17 18 19 
-9 10 11 12 13 14 15 16 17 18 19 20 
 * * * * * * * * * * * * 
-11 12 13 14 15 16 17 18 19 20 21 22 
+14 15 16 17 18 19 20 21 22 23 24 25 
+13 14 15 16 17 18 19 20 21 22 23 24 
 12 13 14 15 16 17 18 19 20 21 22 23 
-13 14 15 16 17 18 19 20 21 22 23 24 
 * * * * * * * * * * * * 
+10 11 12 13 14 15 16 17 18 19 20 21 
+9 10 11 12 13 14 15 16 17 18 19 20 
 8 9 10 11 12 13 14 15 16 17 18 19 
-9 10 11 12 13 14 15 16 17 18 19 20 
-10 11 12 13 14 15 16 17 18 19 20 21 
 * * * * * * * * * * * * 
-12 13 14 15 16 17 18 19 20 21 22 23 
-13 14 15 16 17 18 19 20 21 22 23 24 
-14 15 16 17 18 19 20 21 22 23 24 25 

Modified: grass/trunk/raster3d/r3.out.ascii/test_float_sntb_null.ref
===================================================================
--- grass/trunk/raster3d/r3.out.ascii/test_float_sntb_null.ref	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/raster3d/r3.out.ascii/test_float_sntb_null.ref	2011-06-17 20:10:37 UTC (rev 46728)
@@ -9,43 +9,43 @@
 rows: 8
 cols: 12
 levels: 5
+14 15 16 17 18 19 20 21 22 23 24 25 
+13 14 15 16 17 18 19 20 21 22 23 24 
+12 13 14 15 16 17 18 19 20 21 22 23 
 * * * * * * * * * * * * 
+10 11 12 13 14 15 16 17 18 19 20 21 
+9 10 11 12 13 14 15 16 17 18 19 20 
 8 9 10 11 12 13 14 15 16 17 18 19 
-9 10 11 12 13 14 15 16 17 18 19 20 
-10 11 12 13 14 15 16 17 18 19 20 21 
 * * * * * * * * * * * * 
+13 14 15 16 17 18 19 20 21 22 23 24 
 12 13 14 15 16 17 18 19 20 21 22 23 
-13 14 15 16 17 18 19 20 21 22 23 24 
-14 15 16 17 18 19 20 21 22 23 24 25 
+11 12 13 14 15 16 17 18 19 20 21 22 
 * * * * * * * * * * * * 
+9 10 11 12 13 14 15 16 17 18 19 20 
+8 9 10 11 12 13 14 15 16 17 18 19 
 7 8 9 10 11 12 13 14 15 16 17 18 
-8 9 10 11 12 13 14 15 16 17 18 19 
-9 10 11 12 13 14 15 16 17 18 19 20 
 * * * * * * * * * * * * 
+12 13 14 15 16 17 18 19 20 21 22 23 
 11 12 13 14 15 16 17 18 19 20 21 22 
-12 13 14 15 16 17 18 19 20 21 22 23 
-13 14 15 16 17 18 19 20 21 22 23 24 
+10 11 12 13 14 15 16 17 18 19 20 21 
 * * * * * * * * * * * * 
+8 9 10 11 12 13 14 15 16 17 18 19 
+7 8 9 10 11 12 13 14 15 16 17 18 
 6 7 8 9 10 11 12 13 14 15 16 17 
-7 8 9 10 11 12 13 14 15 16 17 18 
-8 9 10 11 12 13 14 15 16 17 18 19 
 * * * * * * * * * * * * 
+11 12 13 14 15 16 17 18 19 20 21 22 
 10 11 12 13 14 15 16 17 18 19 20 21 
-11 12 13 14 15 16 17 18 19 20 21 22 
-12 13 14 15 16 17 18 19 20 21 22 23 
+9 10 11 12 13 14 15 16 17 18 19 20 
 * * * * * * * * * * * * 
+7 8 9 10 11 12 13 14 15 16 17 18 
+6 7 8 9 10 11 12 13 14 15 16 17 
 5 6 7 8 9 10 11 12 13 14 15 16 
-6 7 8 9 10 11 12 13 14 15 16 17 
-7 8 9 10 11 12 13 14 15 16 17 18 
 * * * * * * * * * * * * 
+10 11 12 13 14 15 16 17 18 19 20 21 
 9 10 11 12 13 14 15 16 17 18 19 20 
-10 11 12 13 14 15 16 17 18 19 20 21 
-11 12 13 14 15 16 17 18 19 20 21 22 
+8 9 10 11 12 13 14 15 16 17 18 19 
 * * * * * * * * * * * * 
+6 7 8 9 10 11 12 13 14 15 16 17 
+5 6 7 8 9 10 11 12 13 14 15 16 
 4 5 6 7 8 9 10 11 12 13 14 15 
-5 6 7 8 9 10 11 12 13 14 15 16 
-6 7 8 9 10 11 12 13 14 15 16 17 
 * * * * * * * * * * * * 
-8 9 10 11 12 13 14 15 16 17 18 19 
-9 10 11 12 13 14 15 16 17 18 19 20 
-10 11 12 13 14 15 16 17 18 19 20 21 

Modified: grass/trunk/raster3d/r3.out.ascii/test_float_sntb_null_prec8.ref
===================================================================
--- grass/trunk/raster3d/r3.out.ascii/test_float_sntb_null_prec8.ref	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/raster3d/r3.out.ascii/test_float_sntb_null_prec8.ref	2011-06-17 20:10:37 UTC (rev 46728)
@@ -9,43 +9,43 @@
 rows: 8
 cols: 12
 levels: 5
+14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 23.00000000 24.00000000 25.00000000 
+13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 23.00000000 24.00000000 
+12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 23.00000000 
 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 
+10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 
+9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 
 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 
-9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 
-10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 
 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 
+13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 23.00000000 24.00000000 
 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 23.00000000 
-13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 23.00000000 24.00000000 
-14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 23.00000000 24.00000000 25.00000000 
+11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 
 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 
+9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 
+8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 
 7.00000000 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 
-8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 
-9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 
 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 
+12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 23.00000000 
 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 
-12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 23.00000000 
-13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 23.00000000 24.00000000 
+10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 
 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 
+8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 
+7.00000000 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 
 6.00000000 7.00000000 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 
-7.00000000 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 
-8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 
 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 
+11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 
 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 
-11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 
-12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 23.00000000 
+9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 
 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 
+7.00000000 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 
+6.00000000 7.00000000 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 
 5.00000000 6.00000000 7.00000000 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 
-6.00000000 7.00000000 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 
-7.00000000 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 
 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 
+10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 
 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 
-10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 
-11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 22.00000000 
+8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 
 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 
+6.00000000 7.00000000 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 
+5.00000000 6.00000000 7.00000000 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 
 4.00000000 5.00000000 6.00000000 7.00000000 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 
-5.00000000 6.00000000 7.00000000 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 
-6.00000000 7.00000000 8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 
 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 -2000 
-8.00000000 9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 
-9.00000000 10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 
-10.00000000 11.00000000 12.00000000 13.00000000 14.00000000 15.00000000 16.00000000 17.00000000 18.00000000 19.00000000 20.00000000 21.00000000 

Modified: grass/trunk/raster3d/r3.out.vtk/main.c
===================================================================
--- grass/trunk/raster3d/r3.out.vtk/main.c	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/raster3d/r3.out.vtk/main.c	2011-06-17 20:10:37 UTC (rev 46728)
@@ -337,7 +337,7 @@
             if (!G3d_closeCell(mapvect)) {
                 fatal_error(_("Error closing g3d vector map."), in);
             }
-            /*Set the pointer to null so we noe later that these files are already closed */
+            /*Set the pointer to null so we know later that these files are already closed */
             if (i == 0)
                 in->map_x = NULL;
             if (i == 1)

Modified: grass/trunk/raster3d/r3.out.vtk/test.r3.out.vtk.sh
===================================================================
--- grass/trunk/raster3d/r3.out.vtk/test.r3.out.vtk.sh	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/raster3d/r3.out.vtk/test.r3.out.vtk.sh	2011-06-17 20:10:37 UTC (rev 46728)
@@ -13,8 +13,7 @@
 # to south. So in the south the elevation must have a maximum.
 r.mapcalc --o expr="elev_bottom = row()"
 r.mapcalc --o expr="elev_top = row() + 50"
-# Now create a voxel map with value = col + row + depth. Beware the 
-# raster3d module count from south to north.
+# Now create a voxel map with value = col + row + depth. 
 r3.mapcalc --o expr="volume = col() + row() + depth()"
 # Add null value information
 r3.mapcalc --o expr="volume_null = if(row() == 2 || row() == 7, null(), volume)"

Modified: grass/trunk/raster3d/r3.out.vtk/test_volume_null_1_cells.ref
===================================================================
--- grass/trunk/raster3d/r3.out.vtk/test_volume_null_1_cells.ref	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/raster3d/r3.out.vtk/test_volume_null_1_cells.ref	2011-06-17 20:10:37 UTC (rev 46728)
@@ -8,43 +8,43 @@
 CELL_DATA 480
 SCALARS volume_null float 1
 LOOKUP_TABLE default
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
+0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
+6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
+5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
+0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
 3.000 4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 
+11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
-5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 
+12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
-6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
-11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
+13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
+11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
-12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
+14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 25.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
+12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
+11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
-13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
-0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
-12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
-0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
-14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 25.000 

Modified: grass/trunk/raster3d/r3.out.vtk/test_volume_null_1_cells_elevation.ref
===================================================================
--- grass/trunk/raster3d/r3.out.vtk/test_volume_null_1_cells_elevation.ref	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/raster3d/r3.out.vtk/test_volume_null_1_cells_elevation.ref	2011-06-17 20:10:37 UTC (rev 46728)
@@ -4808,43 +4808,43 @@
 CELL_DATA 480
 SCALARS volume_null float 1
 LOOKUP_TABLE default
+3.000 4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 
+0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
+5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
+6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
+0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
+4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
+6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
-6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
-5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
-3.000 4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 
 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
+5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
-6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
-4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 
 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
+6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
+11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
-5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
+12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
-6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 25.000 
-0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
-12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
-11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 

Modified: grass/trunk/raster3d/r3.out.vtk/test_volume_null_1_cells_rgb_vect.ref
===================================================================
--- grass/trunk/raster3d/r3.out.vtk/test_volume_null_1_cells_rgb_vect.ref	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/raster3d/r3.out.vtk/test_volume_null_1_cells_rgb_vect.ref	2011-06-17 20:10:37 UTC (rev 46728)
@@ -8,59 +8,59 @@
 CELL_DATA 480
 SCALARS volume_null float 1
 LOOKUP_TABLE default
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
+-1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
+6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
+5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
+-1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 
 3.000 4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 
+11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 
-5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 
+12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 
-6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 
-11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
+13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
+11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 
-12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
+14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 25.000 
 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
+12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
+11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 
-13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
--1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
-12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
--1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 
-14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 25.000 
 COLOR_SCALARS RGB_Voxel 3
-0.059 0.059 0.059 
-0.078 0.078 0.078 
-0.098 0.098 0.098 
-0.118 0.118 0.118 
-0.137 0.137 0.137 
-0.157 0.157 0.157 
-0.176 0.176 0.176 
 0.196 0.196 0.196 
 0.216 0.216 0.216 
 0.235 0.235 0.235 
 0.255 0.255 0.255 
 0.275 0.275 0.275 
+0.294 0.294 0.294 
+0.314 0.314 0.314 
+0.333 0.333 0.333 
+0.353 0.353 0.353 
+0.373 0.373 0.373 
+0.392 0.392 0.392 
+0.412 0.412 0.412 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -73,9 +73,6 @@
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
-0.098 0.098 0.098 
-0.118 0.118 0.118 
-0.137 0.137 0.137 
 0.157 0.157 0.157 
 0.176 0.176 0.176 
 0.196 0.196 0.196 
@@ -85,7 +82,9 @@
 0.275 0.275 0.275 
 0.294 0.294 0.294 
 0.314 0.314 0.314 
-0.118 0.118 0.118 
+0.333 0.333 0.333 
+0.353 0.353 0.353 
+0.373 0.373 0.373 
 0.137 0.137 0.137 
 0.157 0.157 0.157 
 0.176 0.176 0.176 
@@ -97,6 +96,8 @@
 0.294 0.294 0.294 
 0.314 0.314 0.314 
 0.333 0.333 0.333 
+0.353 0.353 0.353 
+0.118 0.118 0.118 
 0.137 0.137 0.137 
 0.157 0.157 0.157 
 0.176 0.176 0.176 
@@ -108,7 +109,9 @@
 0.294 0.294 0.294 
 0.314 0.314 0.314 
 0.333 0.333 0.333 
-0.353 0.353 0.353 
+0.098 0.098 0.098 
+0.118 0.118 0.118 
+0.137 0.137 0.137 
 0.157 0.157 0.157 
 0.176 0.176 0.176 
 0.196 0.196 0.196 
@@ -118,9 +121,6 @@
 0.275 0.275 0.275 
 0.294 0.294 0.294 
 0.314 0.314 0.314 
-0.333 0.333 0.333 
-0.353 0.353 0.353 
-0.373 0.373 0.373 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -133,11 +133,22 @@
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
+0.059 0.059 0.059 
+0.078 0.078 0.078 
+0.098 0.098 0.098 
+0.118 0.118 0.118 
+0.137 0.137 0.137 
+0.157 0.157 0.157 
+0.176 0.176 0.176 
 0.196 0.196 0.196 
 0.216 0.216 0.216 
 0.235 0.235 0.235 
 0.255 0.255 0.255 
 0.275 0.275 0.275 
+0.216 0.216 0.216 
+0.235 0.235 0.235 
+0.255 0.255 0.255 
+0.275 0.275 0.275 
 0.294 0.294 0.294 
 0.314 0.314 0.314 
 0.333 0.333 0.333 
@@ -145,18 +156,7 @@
 0.373 0.373 0.373 
 0.392 0.392 0.392 
 0.412 0.412 0.412 
-0.078 0.078 0.078 
-0.098 0.098 0.098 
-0.118 0.118 0.118 
-0.137 0.137 0.137 
-0.157 0.157 0.157 
-0.176 0.176 0.176 
-0.196 0.196 0.196 
-0.216 0.216 0.216 
-0.235 0.235 0.235 
-0.255 0.255 0.255 
-0.275 0.275 0.275 
-0.294 0.294 0.294 
+0.431 0.431 0.431 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -169,9 +169,6 @@
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
-0.118 0.118 0.118 
-0.137 0.137 0.137 
-0.157 0.157 0.157 
 0.176 0.176 0.176 
 0.196 0.196 0.196 
 0.216 0.216 0.216 
@@ -181,7 +178,9 @@
 0.294 0.294 0.294 
 0.314 0.314 0.314 
 0.333 0.333 0.333 
-0.137 0.137 0.137 
+0.353 0.353 0.353 
+0.373 0.373 0.373 
+0.392 0.392 0.392 
 0.157 0.157 0.157 
 0.176 0.176 0.176 
 0.196 0.196 0.196 
@@ -193,6 +192,8 @@
 0.314 0.314 0.314 
 0.333 0.333 0.333 
 0.353 0.353 0.353 
+0.373 0.373 0.373 
+0.137 0.137 0.137 
 0.157 0.157 0.157 
 0.176 0.176 0.176 
 0.196 0.196 0.196 
@@ -204,7 +205,9 @@
 0.314 0.314 0.314 
 0.333 0.333 0.333 
 0.353 0.353 0.353 
-0.373 0.373 0.373 
+0.118 0.118 0.118 
+0.137 0.137 0.137 
+0.157 0.157 0.157 
 0.176 0.176 0.176 
 0.196 0.196 0.196 
 0.216 0.216 0.216 
@@ -214,9 +217,6 @@
 0.294 0.294 0.294 
 0.314 0.314 0.314 
 0.333 0.333 0.333 
-0.353 0.353 0.353 
-0.373 0.373 0.373 
-0.392 0.392 0.392 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -229,11 +229,22 @@
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
+0.078 0.078 0.078 
+0.098 0.098 0.098 
+0.118 0.118 0.118 
+0.137 0.137 0.137 
+0.157 0.157 0.157 
+0.176 0.176 0.176 
+0.196 0.196 0.196 
 0.216 0.216 0.216 
 0.235 0.235 0.235 
 0.255 0.255 0.255 
 0.275 0.275 0.275 
 0.294 0.294 0.294 
+0.235 0.235 0.235 
+0.255 0.255 0.255 
+0.275 0.275 0.275 
+0.294 0.294 0.294 
 0.314 0.314 0.314 
 0.333 0.333 0.333 
 0.353 0.353 0.353 
@@ -241,18 +252,7 @@
 0.392 0.392 0.392 
 0.412 0.412 0.412 
 0.431 0.431 0.431 
-0.098 0.098 0.098 
-0.118 0.118 0.118 
-0.137 0.137 0.137 
-0.157 0.157 0.157 
-0.176 0.176 0.176 
-0.196 0.196 0.196 
-0.216 0.216 0.216 
-0.235 0.235 0.235 
-0.255 0.255 0.255 
-0.275 0.275 0.275 
-0.294 0.294 0.294 
-0.314 0.314 0.314 
+0.451 0.451 0.451 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -265,9 +265,6 @@
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
-0.137 0.137 0.137 
-0.157 0.157 0.157 
-0.176 0.176 0.176 
 0.196 0.196 0.196 
 0.216 0.216 0.216 
 0.235 0.235 0.235 
@@ -277,7 +274,9 @@
 0.314 0.314 0.314 
 0.333 0.333 0.333 
 0.353 0.353 0.353 
-0.157 0.157 0.157 
+0.373 0.373 0.373 
+0.392 0.392 0.392 
+0.412 0.412 0.412 
 0.176 0.176 0.176 
 0.196 0.196 0.196 
 0.216 0.216 0.216 
@@ -289,6 +288,8 @@
 0.333 0.333 0.333 
 0.353 0.353 0.353 
 0.373 0.373 0.373 
+0.392 0.392 0.392 
+0.157 0.157 0.157 
 0.176 0.176 0.176 
 0.196 0.196 0.196 
 0.216 0.216 0.216 
@@ -300,7 +301,9 @@
 0.333 0.333 0.333 
 0.353 0.353 0.353 
 0.373 0.373 0.373 
-0.392 0.392 0.392 
+0.137 0.137 0.137 
+0.157 0.157 0.157 
+0.176 0.176 0.176 
 0.196 0.196 0.196 
 0.216 0.216 0.216 
 0.235 0.235 0.235 
@@ -310,9 +313,6 @@
 0.314 0.314 0.314 
 0.333 0.333 0.333 
 0.353 0.353 0.353 
-0.373 0.373 0.373 
-0.392 0.392 0.392 
-0.412 0.412 0.412 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -325,11 +325,22 @@
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
+0.098 0.098 0.098 
+0.118 0.118 0.118 
+0.137 0.137 0.137 
+0.157 0.157 0.157 
+0.176 0.176 0.176 
+0.196 0.196 0.196 
+0.216 0.216 0.216 
 0.235 0.235 0.235 
 0.255 0.255 0.255 
 0.275 0.275 0.275 
 0.294 0.294 0.294 
 0.314 0.314 0.314 
+0.255 0.255 0.255 
+0.275 0.275 0.275 
+0.294 0.294 0.294 
+0.314 0.314 0.314 
 0.333 0.333 0.333 
 0.353 0.353 0.353 
 0.373 0.373 0.373 
@@ -337,18 +348,7 @@
 0.412 0.412 0.412 
 0.431 0.431 0.431 
 0.451 0.451 0.451 
-0.118 0.118 0.118 
-0.137 0.137 0.137 
-0.157 0.157 0.157 
-0.176 0.176 0.176 
-0.196 0.196 0.196 
-0.216 0.216 0.216 
-0.235 0.235 0.235 
-0.255 0.255 0.255 
-0.275 0.275 0.275 
-0.294 0.294 0.294 
-0.314 0.314 0.314 
-0.333 0.333 0.333 
+0.471 0.471 0.471 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -361,9 +361,6 @@
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
-0.157 0.157 0.157 
-0.176 0.176 0.176 
-0.196 0.196 0.196 
 0.216 0.216 0.216 
 0.235 0.235 0.235 
 0.255 0.255 0.255 
@@ -373,7 +370,9 @@
 0.333 0.333 0.333 
 0.353 0.353 0.353 
 0.373 0.373 0.373 
-0.176 0.176 0.176 
+0.392 0.392 0.392 
+0.412 0.412 0.412 
+0.431 0.431 0.431 
 0.196 0.196 0.196 
 0.216 0.216 0.216 
 0.235 0.235 0.235 
@@ -385,6 +384,8 @@
 0.353 0.353 0.353 
 0.373 0.373 0.373 
 0.392 0.392 0.392 
+0.412 0.412 0.412 
+0.176 0.176 0.176 
 0.196 0.196 0.196 
 0.216 0.216 0.216 
 0.235 0.235 0.235 
@@ -396,7 +397,9 @@
 0.353 0.353 0.353 
 0.373 0.373 0.373 
 0.392 0.392 0.392 
-0.412 0.412 0.412 
+0.157 0.157 0.157 
+0.176 0.176 0.176 
+0.196 0.196 0.196 
 0.216 0.216 0.216 
 0.235 0.235 0.235 
 0.255 0.255 0.255 
@@ -406,9 +409,6 @@
 0.333 0.333 0.333 
 0.353 0.353 0.353 
 0.373 0.373 0.373 
-0.392 0.392 0.392 
-0.412 0.412 0.412 
-0.431 0.431 0.431 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -421,11 +421,22 @@
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
+0.118 0.118 0.118 
+0.137 0.137 0.137 
+0.157 0.157 0.157 
+0.176 0.176 0.176 
+0.196 0.196 0.196 
+0.216 0.216 0.216 
+0.235 0.235 0.235 
 0.255 0.255 0.255 
 0.275 0.275 0.275 
 0.294 0.294 0.294 
 0.314 0.314 0.314 
 0.333 0.333 0.333 
+0.275 0.275 0.275 
+0.294 0.294 0.294 
+0.314 0.314 0.314 
+0.333 0.333 0.333 
 0.353 0.353 0.353 
 0.373 0.373 0.373 
 0.392 0.392 0.392 
@@ -433,18 +444,7 @@
 0.431 0.431 0.431 
 0.451 0.451 0.451 
 0.471 0.471 0.471 
-0.137 0.137 0.137 
-0.157 0.157 0.157 
-0.176 0.176 0.176 
-0.196 0.196 0.196 
-0.216 0.216 0.216 
-0.235 0.235 0.235 
-0.255 0.255 0.255 
-0.275 0.275 0.275 
-0.294 0.294 0.294 
-0.314 0.314 0.314 
-0.333 0.333 0.333 
-0.353 0.353 0.353 
+0.490 0.490 0.490 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -457,9 +457,6 @@
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
-0.176 0.176 0.176 
-0.196 0.196 0.196 
-0.216 0.216 0.216 
 0.235 0.235 0.235 
 0.255 0.255 0.255 
 0.275 0.275 0.275 
@@ -469,7 +466,9 @@
 0.353 0.353 0.353 
 0.373 0.373 0.373 
 0.392 0.392 0.392 
-0.196 0.196 0.196 
+0.412 0.412 0.412 
+0.431 0.431 0.431 
+0.451 0.451 0.451 
 0.216 0.216 0.216 
 0.235 0.235 0.235 
 0.255 0.255 0.255 
@@ -481,6 +480,8 @@
 0.373 0.373 0.373 
 0.392 0.392 0.392 
 0.412 0.412 0.412 
+0.431 0.431 0.431 
+0.196 0.196 0.196 
 0.216 0.216 0.216 
 0.235 0.235 0.235 
 0.255 0.255 0.255 
@@ -492,7 +493,9 @@
 0.373 0.373 0.373 
 0.392 0.392 0.392 
 0.412 0.412 0.412 
-0.431 0.431 0.431 
+0.176 0.176 0.176 
+0.196 0.196 0.196 
+0.216 0.216 0.216 
 0.235 0.235 0.235 
 0.255 0.255 0.255 
 0.275 0.275 0.275 
@@ -502,9 +505,6 @@
 0.353 0.353 0.353 
 0.373 0.373 0.373 
 0.392 0.392 0.392 
-0.412 0.412 0.412 
-0.431 0.431 0.431 
-0.451 0.451 0.451 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -517,31 +517,31 @@
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
+0.137 0.137 0.137 
+0.157 0.157 0.157 
+0.176 0.176 0.176 
+0.196 0.196 0.196 
+0.216 0.216 0.216 
+0.235 0.235 0.235 
+0.255 0.255 0.255 
 0.275 0.275 0.275 
 0.294 0.294 0.294 
 0.314 0.314 0.314 
 0.333 0.333 0.333 
 0.353 0.353 0.353 
-0.373 0.373 0.373 
-0.392 0.392 0.392 
-0.412 0.412 0.412 
-0.431 0.431 0.431 
-0.451 0.451 0.451 
-0.471 0.471 0.471 
-0.490 0.490 0.490 
 VECTORS Vector_Data float
-3.000 3.000 3.000 
-4.000 4.000 4.000 
-5.000 5.000 5.000 
-6.000 6.000 6.000 
-7.000 7.000 7.000 
-8.000 8.000 8.000 
-9.000 9.000 9.000 
 10.000 10.000 10.000 
 11.000 11.000 11.000 
 12.000 12.000 12.000 
 13.000 13.000 13.000 
 14.000 14.000 14.000 
+15.000 15.000 15.000 
+16.000 16.000 16.000 
+17.000 17.000 17.000 
+18.000 18.000 18.000 
+19.000 19.000 19.000 
+20.000 20.000 20.000 
+21.000 21.000 21.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -554,9 +554,6 @@
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
-5.000 5.000 5.000 
-6.000 6.000 6.000 
-7.000 7.000 7.000 
 8.000 8.000 8.000 
 9.000 9.000 9.000 
 10.000 10.000 10.000 
@@ -566,7 +563,9 @@
 14.000 14.000 14.000 
 15.000 15.000 15.000 
 16.000 16.000 16.000 
-6.000 6.000 6.000 
+17.000 17.000 17.000 
+18.000 18.000 18.000 
+19.000 19.000 19.000 
 7.000 7.000 7.000 
 8.000 8.000 8.000 
 9.000 9.000 9.000 
@@ -578,6 +577,8 @@
 15.000 15.000 15.000 
 16.000 16.000 16.000 
 17.000 17.000 17.000 
+18.000 18.000 18.000 
+6.000 6.000 6.000 
 7.000 7.000 7.000 
 8.000 8.000 8.000 
 9.000 9.000 9.000 
@@ -589,7 +590,9 @@
 15.000 15.000 15.000 
 16.000 16.000 16.000 
 17.000 17.000 17.000 
-18.000 18.000 18.000 
+5.000 5.000 5.000 
+6.000 6.000 6.000 
+7.000 7.000 7.000 
 8.000 8.000 8.000 
 9.000 9.000 9.000 
 10.000 10.000 10.000 
@@ -599,9 +602,6 @@
 14.000 14.000 14.000 
 15.000 15.000 15.000 
 16.000 16.000 16.000 
-17.000 17.000 17.000 
-18.000 18.000 18.000 
-19.000 19.000 19.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -614,11 +614,22 @@
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
+3.000 3.000 3.000 
+4.000 4.000 4.000 
+5.000 5.000 5.000 
+6.000 6.000 6.000 
+7.000 7.000 7.000 
+8.000 8.000 8.000 
+9.000 9.000 9.000 
 10.000 10.000 10.000 
 11.000 11.000 11.000 
 12.000 12.000 12.000 
 13.000 13.000 13.000 
 14.000 14.000 14.000 
+11.000 11.000 11.000 
+12.000 12.000 12.000 
+13.000 13.000 13.000 
+14.000 14.000 14.000 
 15.000 15.000 15.000 
 16.000 16.000 16.000 
 17.000 17.000 17.000 
@@ -626,18 +637,7 @@
 19.000 19.000 19.000 
 20.000 20.000 20.000 
 21.000 21.000 21.000 
-4.000 4.000 4.000 
-5.000 5.000 5.000 
-6.000 6.000 6.000 
-7.000 7.000 7.000 
-8.000 8.000 8.000 
-9.000 9.000 9.000 
-10.000 10.000 10.000 
-11.000 11.000 11.000 
-12.000 12.000 12.000 
-13.000 13.000 13.000 
-14.000 14.000 14.000 
-15.000 15.000 15.000 
+22.000 22.000 22.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -650,9 +650,6 @@
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
-6.000 6.000 6.000 
-7.000 7.000 7.000 
-8.000 8.000 8.000 
 9.000 9.000 9.000 
 10.000 10.000 10.000 
 11.000 11.000 11.000 
@@ -662,7 +659,9 @@
 15.000 15.000 15.000 
 16.000 16.000 16.000 
 17.000 17.000 17.000 
-7.000 7.000 7.000 
+18.000 18.000 18.000 
+19.000 19.000 19.000 
+20.000 20.000 20.000 
 8.000 8.000 8.000 
 9.000 9.000 9.000 
 10.000 10.000 10.000 
@@ -674,6 +673,8 @@
 16.000 16.000 16.000 
 17.000 17.000 17.000 
 18.000 18.000 18.000 
+19.000 19.000 19.000 
+7.000 7.000 7.000 
 8.000 8.000 8.000 
 9.000 9.000 9.000 
 10.000 10.000 10.000 
@@ -685,7 +686,9 @@
 16.000 16.000 16.000 
 17.000 17.000 17.000 
 18.000 18.000 18.000 
-19.000 19.000 19.000 
+6.000 6.000 6.000 
+7.000 7.000 7.000 
+8.000 8.000 8.000 
 9.000 9.000 9.000 
 10.000 10.000 10.000 
 11.000 11.000 11.000 
@@ -695,9 +698,6 @@
 15.000 15.000 15.000 
 16.000 16.000 16.000 
 17.000 17.000 17.000 
-18.000 18.000 18.000 
-19.000 19.000 19.000 
-20.000 20.000 20.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -710,11 +710,22 @@
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
+4.000 4.000 4.000 
+5.000 5.000 5.000 
+6.000 6.000 6.000 
+7.000 7.000 7.000 
+8.000 8.000 8.000 
+9.000 9.000 9.000 
+10.000 10.000 10.000 
 11.000 11.000 11.000 
 12.000 12.000 12.000 
 13.000 13.000 13.000 
 14.000 14.000 14.000 
 15.000 15.000 15.000 
+12.000 12.000 12.000 
+13.000 13.000 13.000 
+14.000 14.000 14.000 
+15.000 15.000 15.000 
 16.000 16.000 16.000 
 17.000 17.000 17.000 
 18.000 18.000 18.000 
@@ -722,18 +733,7 @@
 20.000 20.000 20.000 
 21.000 21.000 21.000 
 22.000 22.000 22.000 
-5.000 5.000 5.000 
-6.000 6.000 6.000 
-7.000 7.000 7.000 
-8.000 8.000 8.000 
-9.000 9.000 9.000 
-10.000 10.000 10.000 
-11.000 11.000 11.000 
-12.000 12.000 12.000 
-13.000 13.000 13.000 
-14.000 14.000 14.000 
-15.000 15.000 15.000 
-16.000 16.000 16.000 
+23.000 23.000 23.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -746,9 +746,6 @@
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
-7.000 7.000 7.000 
-8.000 8.000 8.000 
-9.000 9.000 9.000 
 10.000 10.000 10.000 
 11.000 11.000 11.000 
 12.000 12.000 12.000 
@@ -758,7 +755,9 @@
 16.000 16.000 16.000 
 17.000 17.000 17.000 
 18.000 18.000 18.000 
-8.000 8.000 8.000 
+19.000 19.000 19.000 
+20.000 20.000 20.000 
+21.000 21.000 21.000 
 9.000 9.000 9.000 
 10.000 10.000 10.000 
 11.000 11.000 11.000 
@@ -770,6 +769,8 @@
 17.000 17.000 17.000 
 18.000 18.000 18.000 
 19.000 19.000 19.000 
+20.000 20.000 20.000 
+8.000 8.000 8.000 
 9.000 9.000 9.000 
 10.000 10.000 10.000 
 11.000 11.000 11.000 
@@ -781,7 +782,9 @@
 17.000 17.000 17.000 
 18.000 18.000 18.000 
 19.000 19.000 19.000 
-20.000 20.000 20.000 
+7.000 7.000 7.000 
+8.000 8.000 8.000 
+9.000 9.000 9.000 
 10.000 10.000 10.000 
 11.000 11.000 11.000 
 12.000 12.000 12.000 
@@ -791,9 +794,6 @@
 16.000 16.000 16.000 
 17.000 17.000 17.000 
 18.000 18.000 18.000 
-19.000 19.000 19.000 
-20.000 20.000 20.000 
-21.000 21.000 21.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -806,11 +806,22 @@
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
+5.000 5.000 5.000 
+6.000 6.000 6.000 
+7.000 7.000 7.000 
+8.000 8.000 8.000 
+9.000 9.000 9.000 
+10.000 10.000 10.000 
+11.000 11.000 11.000 
 12.000 12.000 12.000 
 13.000 13.000 13.000 
 14.000 14.000 14.000 
 15.000 15.000 15.000 
 16.000 16.000 16.000 
+13.000 13.000 13.000 
+14.000 14.000 14.000 
+15.000 15.000 15.000 
+16.000 16.000 16.000 
 17.000 17.000 17.000 
 18.000 18.000 18.000 
 19.000 19.000 19.000 
@@ -818,18 +829,7 @@
 21.000 21.000 21.000 
 22.000 22.000 22.000 
 23.000 23.000 23.000 
-6.000 6.000 6.000 
-7.000 7.000 7.000 
-8.000 8.000 8.000 
-9.000 9.000 9.000 
-10.000 10.000 10.000 
-11.000 11.000 11.000 
-12.000 12.000 12.000 
-13.000 13.000 13.000 
-14.000 14.000 14.000 
-15.000 15.000 15.000 
-16.000 16.000 16.000 
-17.000 17.000 17.000 
+24.000 24.000 24.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -842,9 +842,6 @@
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
-8.000 8.000 8.000 
-9.000 9.000 9.000 
-10.000 10.000 10.000 
 11.000 11.000 11.000 
 12.000 12.000 12.000 
 13.000 13.000 13.000 
@@ -854,7 +851,9 @@
 17.000 17.000 17.000 
 18.000 18.000 18.000 
 19.000 19.000 19.000 
-9.000 9.000 9.000 
+20.000 20.000 20.000 
+21.000 21.000 21.000 
+22.000 22.000 22.000 
 10.000 10.000 10.000 
 11.000 11.000 11.000 
 12.000 12.000 12.000 
@@ -866,6 +865,8 @@
 18.000 18.000 18.000 
 19.000 19.000 19.000 
 20.000 20.000 20.000 
+21.000 21.000 21.000 
+9.000 9.000 9.000 
 10.000 10.000 10.000 
 11.000 11.000 11.000 
 12.000 12.000 12.000 
@@ -877,7 +878,9 @@
 18.000 18.000 18.000 
 19.000 19.000 19.000 
 20.000 20.000 20.000 
-21.000 21.000 21.000 
+8.000 8.000 8.000 
+9.000 9.000 9.000 
+10.000 10.000 10.000 
 11.000 11.000 11.000 
 12.000 12.000 12.000 
 13.000 13.000 13.000 
@@ -887,9 +890,6 @@
 17.000 17.000 17.000 
 18.000 18.000 18.000 
 19.000 19.000 19.000 
-20.000 20.000 20.000 
-21.000 21.000 21.000 
-22.000 22.000 22.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -902,11 +902,22 @@
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
+6.000 6.000 6.000 
+7.000 7.000 7.000 
+8.000 8.000 8.000 
+9.000 9.000 9.000 
+10.000 10.000 10.000 
+11.000 11.000 11.000 
+12.000 12.000 12.000 
 13.000 13.000 13.000 
 14.000 14.000 14.000 
 15.000 15.000 15.000 
 16.000 16.000 16.000 
 17.000 17.000 17.000 
+14.000 14.000 14.000 
+15.000 15.000 15.000 
+16.000 16.000 16.000 
+17.000 17.000 17.000 
 18.000 18.000 18.000 
 19.000 19.000 19.000 
 20.000 20.000 20.000 
@@ -914,18 +925,7 @@
 22.000 22.000 22.000 
 23.000 23.000 23.000 
 24.000 24.000 24.000 
-7.000 7.000 7.000 
-8.000 8.000 8.000 
-9.000 9.000 9.000 
-10.000 10.000 10.000 
-11.000 11.000 11.000 
-12.000 12.000 12.000 
-13.000 13.000 13.000 
-14.000 14.000 14.000 
-15.000 15.000 15.000 
-16.000 16.000 16.000 
-17.000 17.000 17.000 
-18.000 18.000 18.000 
+25.000 25.000 25.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -938,9 +938,6 @@
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
-9.000 9.000 9.000 
-10.000 10.000 10.000 
-11.000 11.000 11.000 
 12.000 12.000 12.000 
 13.000 13.000 13.000 
 14.000 14.000 14.000 
@@ -950,7 +947,9 @@
 18.000 18.000 18.000 
 19.000 19.000 19.000 
 20.000 20.000 20.000 
-10.000 10.000 10.000 
+21.000 21.000 21.000 
+22.000 22.000 22.000 
+23.000 23.000 23.000 
 11.000 11.000 11.000 
 12.000 12.000 12.000 
 13.000 13.000 13.000 
@@ -962,6 +961,8 @@
 19.000 19.000 19.000 
 20.000 20.000 20.000 
 21.000 21.000 21.000 
+22.000 22.000 22.000 
+10.000 10.000 10.000 
 11.000 11.000 11.000 
 12.000 12.000 12.000 
 13.000 13.000 13.000 
@@ -973,7 +974,9 @@
 19.000 19.000 19.000 
 20.000 20.000 20.000 
 21.000 21.000 21.000 
-22.000 22.000 22.000 
+9.000 9.000 9.000 
+10.000 10.000 10.000 
+11.000 11.000 11.000 
 12.000 12.000 12.000 
 13.000 13.000 13.000 
 14.000 14.000 14.000 
@@ -983,9 +986,6 @@
 18.000 18.000 18.000 
 19.000 19.000 19.000 
 20.000 20.000 20.000 
-21.000 21.000 21.000 
-22.000 22.000 22.000 
-23.000 23.000 23.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -998,15 +998,15 @@
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
+7.000 7.000 7.000 
+8.000 8.000 8.000 
+9.000 9.000 9.000 
+10.000 10.000 10.000 
+11.000 11.000 11.000 
+12.000 12.000 12.000 
+13.000 13.000 13.000 
 14.000 14.000 14.000 
 15.000 15.000 15.000 
 16.000 16.000 16.000 
 17.000 17.000 17.000 
 18.000 18.000 18.000 
-19.000 19.000 19.000 
-20.000 20.000 20.000 
-21.000 21.000 21.000 
-22.000 22.000 22.000 
-23.000 23.000 23.000 
-24.000 24.000 24.000 
-25.000 25.000 25.000 

Modified: grass/trunk/raster3d/r3.out.vtk/test_volume_null_1_points.ref
===================================================================
--- grass/trunk/raster3d/r3.out.vtk/test_volume_null_1_points.ref	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/raster3d/r3.out.vtk/test_volume_null_1_points.ref	2011-06-17 20:10:37 UTC (rev 46728)
@@ -8,43 +8,43 @@
 POINT_DATA 480
 SCALARS volume_null float 1
 LOOKUP_TABLE default
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
+0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
+6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
+5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
+0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
 3.000 4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 
+11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
-5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 
+12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
-6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
-11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
+13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
+11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
-12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
+14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 25.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
+12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
+11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
-13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
-0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
-12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
-0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
-14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 25.000 

Modified: grass/trunk/raster3d/r3.out.vtk/test_volume_null_1_points_elevation.ref
===================================================================
--- grass/trunk/raster3d/r3.out.vtk/test_volume_null_1_points_elevation.ref	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/raster3d/r3.out.vtk/test_volume_null_1_points_elevation.ref	2011-06-17 20:10:37 UTC (rev 46728)
@@ -487,43 +487,43 @@
 POINT_DATA 480
 SCALARS volume_null float 1
 LOOKUP_TABLE default
+3.000 4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 
+0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
+5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
+6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
+0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
+4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
+6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
-6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
-5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
-3.000 4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 
 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
+5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
-6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
-4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 
 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
+6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
+11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
-5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
+12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
-6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 25.000 
-0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
-12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
-11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 

Modified: grass/trunk/raster3d/r3.out.vtk/test_volume_null_1_points_rgb_vect.ref
===================================================================
--- grass/trunk/raster3d/r3.out.vtk/test_volume_null_1_points_rgb_vect.ref	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/raster3d/r3.out.vtk/test_volume_null_1_points_rgb_vect.ref	2011-06-17 20:10:37 UTC (rev 46728)
@@ -8,59 +8,59 @@
 POINT_DATA 480
 SCALARS volume_null float 1
 LOOKUP_TABLE default
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
+-1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
+6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
+5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
+-1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 
 3.000 4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 
+11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 
-5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
+7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 4.000 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 
+12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 
-6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
+8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 
-11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 5.000 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 
+13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 
-7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
+11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
+9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 
-12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
 6.000 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 
+14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 25.000 
 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 
-8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 
+12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
+11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
+10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 
-13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 
 7.000 8.000 9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 
--1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 
-9.000 10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 
-10.000 11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 
-11.000 12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 
-12.000 13.000 14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 
--1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 
-14.000 15.000 16.000 17.000 18.000 19.000 20.000 21.000 22.000 23.000 24.000 25.000 
 COLOR_SCALARS RGB_Voxel 3
-0.059 0.059 0.059 
-0.078 0.078 0.078 
-0.098 0.098 0.098 
-0.118 0.118 0.118 
-0.137 0.137 0.137 
-0.157 0.157 0.157 
-0.176 0.176 0.176 
 0.196 0.196 0.196 
 0.216 0.216 0.216 
 0.235 0.235 0.235 
 0.255 0.255 0.255 
 0.275 0.275 0.275 
+0.294 0.294 0.294 
+0.314 0.314 0.314 
+0.333 0.333 0.333 
+0.353 0.353 0.353 
+0.373 0.373 0.373 
+0.392 0.392 0.392 
+0.412 0.412 0.412 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -73,9 +73,6 @@
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
-0.098 0.098 0.098 
-0.118 0.118 0.118 
-0.137 0.137 0.137 
 0.157 0.157 0.157 
 0.176 0.176 0.176 
 0.196 0.196 0.196 
@@ -85,7 +82,9 @@
 0.275 0.275 0.275 
 0.294 0.294 0.294 
 0.314 0.314 0.314 
-0.118 0.118 0.118 
+0.333 0.333 0.333 
+0.353 0.353 0.353 
+0.373 0.373 0.373 
 0.137 0.137 0.137 
 0.157 0.157 0.157 
 0.176 0.176 0.176 
@@ -97,6 +96,8 @@
 0.294 0.294 0.294 
 0.314 0.314 0.314 
 0.333 0.333 0.333 
+0.353 0.353 0.353 
+0.118 0.118 0.118 
 0.137 0.137 0.137 
 0.157 0.157 0.157 
 0.176 0.176 0.176 
@@ -108,7 +109,9 @@
 0.294 0.294 0.294 
 0.314 0.314 0.314 
 0.333 0.333 0.333 
-0.353 0.353 0.353 
+0.098 0.098 0.098 
+0.118 0.118 0.118 
+0.137 0.137 0.137 
 0.157 0.157 0.157 
 0.176 0.176 0.176 
 0.196 0.196 0.196 
@@ -118,9 +121,6 @@
 0.275 0.275 0.275 
 0.294 0.294 0.294 
 0.314 0.314 0.314 
-0.333 0.333 0.333 
-0.353 0.353 0.353 
-0.373 0.373 0.373 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -133,11 +133,22 @@
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
+0.059 0.059 0.059 
+0.078 0.078 0.078 
+0.098 0.098 0.098 
+0.118 0.118 0.118 
+0.137 0.137 0.137 
+0.157 0.157 0.157 
+0.176 0.176 0.176 
 0.196 0.196 0.196 
 0.216 0.216 0.216 
 0.235 0.235 0.235 
 0.255 0.255 0.255 
 0.275 0.275 0.275 
+0.216 0.216 0.216 
+0.235 0.235 0.235 
+0.255 0.255 0.255 
+0.275 0.275 0.275 
 0.294 0.294 0.294 
 0.314 0.314 0.314 
 0.333 0.333 0.333 
@@ -145,18 +156,7 @@
 0.373 0.373 0.373 
 0.392 0.392 0.392 
 0.412 0.412 0.412 
-0.078 0.078 0.078 
-0.098 0.098 0.098 
-0.118 0.118 0.118 
-0.137 0.137 0.137 
-0.157 0.157 0.157 
-0.176 0.176 0.176 
-0.196 0.196 0.196 
-0.216 0.216 0.216 
-0.235 0.235 0.235 
-0.255 0.255 0.255 
-0.275 0.275 0.275 
-0.294 0.294 0.294 
+0.431 0.431 0.431 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -169,9 +169,6 @@
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
-0.118 0.118 0.118 
-0.137 0.137 0.137 
-0.157 0.157 0.157 
 0.176 0.176 0.176 
 0.196 0.196 0.196 
 0.216 0.216 0.216 
@@ -181,7 +178,9 @@
 0.294 0.294 0.294 
 0.314 0.314 0.314 
 0.333 0.333 0.333 
-0.137 0.137 0.137 
+0.353 0.353 0.353 
+0.373 0.373 0.373 
+0.392 0.392 0.392 
 0.157 0.157 0.157 
 0.176 0.176 0.176 
 0.196 0.196 0.196 
@@ -193,6 +192,8 @@
 0.314 0.314 0.314 
 0.333 0.333 0.333 
 0.353 0.353 0.353 
+0.373 0.373 0.373 
+0.137 0.137 0.137 
 0.157 0.157 0.157 
 0.176 0.176 0.176 
 0.196 0.196 0.196 
@@ -204,7 +205,9 @@
 0.314 0.314 0.314 
 0.333 0.333 0.333 
 0.353 0.353 0.353 
-0.373 0.373 0.373 
+0.118 0.118 0.118 
+0.137 0.137 0.137 
+0.157 0.157 0.157 
 0.176 0.176 0.176 
 0.196 0.196 0.196 
 0.216 0.216 0.216 
@@ -214,9 +217,6 @@
 0.294 0.294 0.294 
 0.314 0.314 0.314 
 0.333 0.333 0.333 
-0.353 0.353 0.353 
-0.373 0.373 0.373 
-0.392 0.392 0.392 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -229,11 +229,22 @@
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
+0.078 0.078 0.078 
+0.098 0.098 0.098 
+0.118 0.118 0.118 
+0.137 0.137 0.137 
+0.157 0.157 0.157 
+0.176 0.176 0.176 
+0.196 0.196 0.196 
 0.216 0.216 0.216 
 0.235 0.235 0.235 
 0.255 0.255 0.255 
 0.275 0.275 0.275 
 0.294 0.294 0.294 
+0.235 0.235 0.235 
+0.255 0.255 0.255 
+0.275 0.275 0.275 
+0.294 0.294 0.294 
 0.314 0.314 0.314 
 0.333 0.333 0.333 
 0.353 0.353 0.353 
@@ -241,18 +252,7 @@
 0.392 0.392 0.392 
 0.412 0.412 0.412 
 0.431 0.431 0.431 
-0.098 0.098 0.098 
-0.118 0.118 0.118 
-0.137 0.137 0.137 
-0.157 0.157 0.157 
-0.176 0.176 0.176 
-0.196 0.196 0.196 
-0.216 0.216 0.216 
-0.235 0.235 0.235 
-0.255 0.255 0.255 
-0.275 0.275 0.275 
-0.294 0.294 0.294 
-0.314 0.314 0.314 
+0.451 0.451 0.451 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -265,9 +265,6 @@
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
-0.137 0.137 0.137 
-0.157 0.157 0.157 
-0.176 0.176 0.176 
 0.196 0.196 0.196 
 0.216 0.216 0.216 
 0.235 0.235 0.235 
@@ -277,7 +274,9 @@
 0.314 0.314 0.314 
 0.333 0.333 0.333 
 0.353 0.353 0.353 
-0.157 0.157 0.157 
+0.373 0.373 0.373 
+0.392 0.392 0.392 
+0.412 0.412 0.412 
 0.176 0.176 0.176 
 0.196 0.196 0.196 
 0.216 0.216 0.216 
@@ -289,6 +288,8 @@
 0.333 0.333 0.333 
 0.353 0.353 0.353 
 0.373 0.373 0.373 
+0.392 0.392 0.392 
+0.157 0.157 0.157 
 0.176 0.176 0.176 
 0.196 0.196 0.196 
 0.216 0.216 0.216 
@@ -300,7 +301,9 @@
 0.333 0.333 0.333 
 0.353 0.353 0.353 
 0.373 0.373 0.373 
-0.392 0.392 0.392 
+0.137 0.137 0.137 
+0.157 0.157 0.157 
+0.176 0.176 0.176 
 0.196 0.196 0.196 
 0.216 0.216 0.216 
 0.235 0.235 0.235 
@@ -310,9 +313,6 @@
 0.314 0.314 0.314 
 0.333 0.333 0.333 
 0.353 0.353 0.353 
-0.373 0.373 0.373 
-0.392 0.392 0.392 
-0.412 0.412 0.412 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -325,11 +325,22 @@
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
+0.098 0.098 0.098 
+0.118 0.118 0.118 
+0.137 0.137 0.137 
+0.157 0.157 0.157 
+0.176 0.176 0.176 
+0.196 0.196 0.196 
+0.216 0.216 0.216 
 0.235 0.235 0.235 
 0.255 0.255 0.255 
 0.275 0.275 0.275 
 0.294 0.294 0.294 
 0.314 0.314 0.314 
+0.255 0.255 0.255 
+0.275 0.275 0.275 
+0.294 0.294 0.294 
+0.314 0.314 0.314 
 0.333 0.333 0.333 
 0.353 0.353 0.353 
 0.373 0.373 0.373 
@@ -337,18 +348,7 @@
 0.412 0.412 0.412 
 0.431 0.431 0.431 
 0.451 0.451 0.451 
-0.118 0.118 0.118 
-0.137 0.137 0.137 
-0.157 0.157 0.157 
-0.176 0.176 0.176 
-0.196 0.196 0.196 
-0.216 0.216 0.216 
-0.235 0.235 0.235 
-0.255 0.255 0.255 
-0.275 0.275 0.275 
-0.294 0.294 0.294 
-0.314 0.314 0.314 
-0.333 0.333 0.333 
+0.471 0.471 0.471 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -361,9 +361,6 @@
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
-0.157 0.157 0.157 
-0.176 0.176 0.176 
-0.196 0.196 0.196 
 0.216 0.216 0.216 
 0.235 0.235 0.235 
 0.255 0.255 0.255 
@@ -373,7 +370,9 @@
 0.333 0.333 0.333 
 0.353 0.353 0.353 
 0.373 0.373 0.373 
-0.176 0.176 0.176 
+0.392 0.392 0.392 
+0.412 0.412 0.412 
+0.431 0.431 0.431 
 0.196 0.196 0.196 
 0.216 0.216 0.216 
 0.235 0.235 0.235 
@@ -385,6 +384,8 @@
 0.353 0.353 0.353 
 0.373 0.373 0.373 
 0.392 0.392 0.392 
+0.412 0.412 0.412 
+0.176 0.176 0.176 
 0.196 0.196 0.196 
 0.216 0.216 0.216 
 0.235 0.235 0.235 
@@ -396,7 +397,9 @@
 0.353 0.353 0.353 
 0.373 0.373 0.373 
 0.392 0.392 0.392 
-0.412 0.412 0.412 
+0.157 0.157 0.157 
+0.176 0.176 0.176 
+0.196 0.196 0.196 
 0.216 0.216 0.216 
 0.235 0.235 0.235 
 0.255 0.255 0.255 
@@ -406,9 +409,6 @@
 0.333 0.333 0.333 
 0.353 0.353 0.353 
 0.373 0.373 0.373 
-0.392 0.392 0.392 
-0.412 0.412 0.412 
-0.431 0.431 0.431 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -421,11 +421,22 @@
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
+0.118 0.118 0.118 
+0.137 0.137 0.137 
+0.157 0.157 0.157 
+0.176 0.176 0.176 
+0.196 0.196 0.196 
+0.216 0.216 0.216 
+0.235 0.235 0.235 
 0.255 0.255 0.255 
 0.275 0.275 0.275 
 0.294 0.294 0.294 
 0.314 0.314 0.314 
 0.333 0.333 0.333 
+0.275 0.275 0.275 
+0.294 0.294 0.294 
+0.314 0.314 0.314 
+0.333 0.333 0.333 
 0.353 0.353 0.353 
 0.373 0.373 0.373 
 0.392 0.392 0.392 
@@ -433,18 +444,7 @@
 0.431 0.431 0.431 
 0.451 0.451 0.451 
 0.471 0.471 0.471 
-0.137 0.137 0.137 
-0.157 0.157 0.157 
-0.176 0.176 0.176 
-0.196 0.196 0.196 
-0.216 0.216 0.216 
-0.235 0.235 0.235 
-0.255 0.255 0.255 
-0.275 0.275 0.275 
-0.294 0.294 0.294 
-0.314 0.314 0.314 
-0.333 0.333 0.333 
-0.353 0.353 0.353 
+0.490 0.490 0.490 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -457,9 +457,6 @@
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
-0.176 0.176 0.176 
-0.196 0.196 0.196 
-0.216 0.216 0.216 
 0.235 0.235 0.235 
 0.255 0.255 0.255 
 0.275 0.275 0.275 
@@ -469,7 +466,9 @@
 0.353 0.353 0.353 
 0.373 0.373 0.373 
 0.392 0.392 0.392 
-0.196 0.196 0.196 
+0.412 0.412 0.412 
+0.431 0.431 0.431 
+0.451 0.451 0.451 
 0.216 0.216 0.216 
 0.235 0.235 0.235 
 0.255 0.255 0.255 
@@ -481,6 +480,8 @@
 0.373 0.373 0.373 
 0.392 0.392 0.392 
 0.412 0.412 0.412 
+0.431 0.431 0.431 
+0.196 0.196 0.196 
 0.216 0.216 0.216 
 0.235 0.235 0.235 
 0.255 0.255 0.255 
@@ -492,7 +493,9 @@
 0.373 0.373 0.373 
 0.392 0.392 0.392 
 0.412 0.412 0.412 
-0.431 0.431 0.431 
+0.176 0.176 0.176 
+0.196 0.196 0.196 
+0.216 0.216 0.216 
 0.235 0.235 0.235 
 0.255 0.255 0.255 
 0.275 0.275 0.275 
@@ -502,9 +505,6 @@
 0.353 0.353 0.353 
 0.373 0.373 0.373 
 0.392 0.392 0.392 
-0.412 0.412 0.412 
-0.431 0.431 0.431 
-0.451 0.451 0.451 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -517,31 +517,31 @@
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
+0.137 0.137 0.137 
+0.157 0.157 0.157 
+0.176 0.176 0.176 
+0.196 0.196 0.196 
+0.216 0.216 0.216 
+0.235 0.235 0.235 
+0.255 0.255 0.255 
 0.275 0.275 0.275 
 0.294 0.294 0.294 
 0.314 0.314 0.314 
 0.333 0.333 0.333 
 0.353 0.353 0.353 
-0.373 0.373 0.373 
-0.392 0.392 0.392 
-0.412 0.412 0.412 
-0.431 0.431 0.431 
-0.451 0.451 0.451 
-0.471 0.471 0.471 
-0.490 0.490 0.490 
 VECTORS Vector_Data float
-3.000 3.000 3.000 
-4.000 4.000 4.000 
-5.000 5.000 5.000 
-6.000 6.000 6.000 
-7.000 7.000 7.000 
-8.000 8.000 8.000 
-9.000 9.000 9.000 
 10.000 10.000 10.000 
 11.000 11.000 11.000 
 12.000 12.000 12.000 
 13.000 13.000 13.000 
 14.000 14.000 14.000 
+15.000 15.000 15.000 
+16.000 16.000 16.000 
+17.000 17.000 17.000 
+18.000 18.000 18.000 
+19.000 19.000 19.000 
+20.000 20.000 20.000 
+21.000 21.000 21.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -554,9 +554,6 @@
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
-5.000 5.000 5.000 
-6.000 6.000 6.000 
-7.000 7.000 7.000 
 8.000 8.000 8.000 
 9.000 9.000 9.000 
 10.000 10.000 10.000 
@@ -566,7 +563,9 @@
 14.000 14.000 14.000 
 15.000 15.000 15.000 
 16.000 16.000 16.000 
-6.000 6.000 6.000 
+17.000 17.000 17.000 
+18.000 18.000 18.000 
+19.000 19.000 19.000 
 7.000 7.000 7.000 
 8.000 8.000 8.000 
 9.000 9.000 9.000 
@@ -578,6 +577,8 @@
 15.000 15.000 15.000 
 16.000 16.000 16.000 
 17.000 17.000 17.000 
+18.000 18.000 18.000 
+6.000 6.000 6.000 
 7.000 7.000 7.000 
 8.000 8.000 8.000 
 9.000 9.000 9.000 
@@ -589,7 +590,9 @@
 15.000 15.000 15.000 
 16.000 16.000 16.000 
 17.000 17.000 17.000 
-18.000 18.000 18.000 
+5.000 5.000 5.000 
+6.000 6.000 6.000 
+7.000 7.000 7.000 
 8.000 8.000 8.000 
 9.000 9.000 9.000 
 10.000 10.000 10.000 
@@ -599,9 +602,6 @@
 14.000 14.000 14.000 
 15.000 15.000 15.000 
 16.000 16.000 16.000 
-17.000 17.000 17.000 
-18.000 18.000 18.000 
-19.000 19.000 19.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -614,11 +614,22 @@
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
+3.000 3.000 3.000 
+4.000 4.000 4.000 
+5.000 5.000 5.000 
+6.000 6.000 6.000 
+7.000 7.000 7.000 
+8.000 8.000 8.000 
+9.000 9.000 9.000 
 10.000 10.000 10.000 
 11.000 11.000 11.000 
 12.000 12.000 12.000 
 13.000 13.000 13.000 
 14.000 14.000 14.000 
+11.000 11.000 11.000 
+12.000 12.000 12.000 
+13.000 13.000 13.000 
+14.000 14.000 14.000 
 15.000 15.000 15.000 
 16.000 16.000 16.000 
 17.000 17.000 17.000 
@@ -626,18 +637,7 @@
 19.000 19.000 19.000 
 20.000 20.000 20.000 
 21.000 21.000 21.000 
-4.000 4.000 4.000 
-5.000 5.000 5.000 
-6.000 6.000 6.000 
-7.000 7.000 7.000 
-8.000 8.000 8.000 
-9.000 9.000 9.000 
-10.000 10.000 10.000 
-11.000 11.000 11.000 
-12.000 12.000 12.000 
-13.000 13.000 13.000 
-14.000 14.000 14.000 
-15.000 15.000 15.000 
+22.000 22.000 22.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -650,9 +650,6 @@
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
-6.000 6.000 6.000 
-7.000 7.000 7.000 
-8.000 8.000 8.000 
 9.000 9.000 9.000 
 10.000 10.000 10.000 
 11.000 11.000 11.000 
@@ -662,7 +659,9 @@
 15.000 15.000 15.000 
 16.000 16.000 16.000 
 17.000 17.000 17.000 
-7.000 7.000 7.000 
+18.000 18.000 18.000 
+19.000 19.000 19.000 
+20.000 20.000 20.000 
 8.000 8.000 8.000 
 9.000 9.000 9.000 
 10.000 10.000 10.000 
@@ -674,6 +673,8 @@
 16.000 16.000 16.000 
 17.000 17.000 17.000 
 18.000 18.000 18.000 
+19.000 19.000 19.000 
+7.000 7.000 7.000 
 8.000 8.000 8.000 
 9.000 9.000 9.000 
 10.000 10.000 10.000 
@@ -685,7 +686,9 @@
 16.000 16.000 16.000 
 17.000 17.000 17.000 
 18.000 18.000 18.000 
-19.000 19.000 19.000 
+6.000 6.000 6.000 
+7.000 7.000 7.000 
+8.000 8.000 8.000 
 9.000 9.000 9.000 
 10.000 10.000 10.000 
 11.000 11.000 11.000 
@@ -695,9 +698,6 @@
 15.000 15.000 15.000 
 16.000 16.000 16.000 
 17.000 17.000 17.000 
-18.000 18.000 18.000 
-19.000 19.000 19.000 
-20.000 20.000 20.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -710,11 +710,22 @@
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
+4.000 4.000 4.000 
+5.000 5.000 5.000 
+6.000 6.000 6.000 
+7.000 7.000 7.000 
+8.000 8.000 8.000 
+9.000 9.000 9.000 
+10.000 10.000 10.000 
 11.000 11.000 11.000 
 12.000 12.000 12.000 
 13.000 13.000 13.000 
 14.000 14.000 14.000 
 15.000 15.000 15.000 
+12.000 12.000 12.000 
+13.000 13.000 13.000 
+14.000 14.000 14.000 
+15.000 15.000 15.000 
 16.000 16.000 16.000 
 17.000 17.000 17.000 
 18.000 18.000 18.000 
@@ -722,18 +733,7 @@
 20.000 20.000 20.000 
 21.000 21.000 21.000 
 22.000 22.000 22.000 
-5.000 5.000 5.000 
-6.000 6.000 6.000 
-7.000 7.000 7.000 
-8.000 8.000 8.000 
-9.000 9.000 9.000 
-10.000 10.000 10.000 
-11.000 11.000 11.000 
-12.000 12.000 12.000 
-13.000 13.000 13.000 
-14.000 14.000 14.000 
-15.000 15.000 15.000 
-16.000 16.000 16.000 
+23.000 23.000 23.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -746,9 +746,6 @@
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
-7.000 7.000 7.000 
-8.000 8.000 8.000 
-9.000 9.000 9.000 
 10.000 10.000 10.000 
 11.000 11.000 11.000 
 12.000 12.000 12.000 
@@ -758,7 +755,9 @@
 16.000 16.000 16.000 
 17.000 17.000 17.000 
 18.000 18.000 18.000 
-8.000 8.000 8.000 
+19.000 19.000 19.000 
+20.000 20.000 20.000 
+21.000 21.000 21.000 
 9.000 9.000 9.000 
 10.000 10.000 10.000 
 11.000 11.000 11.000 
@@ -770,6 +769,8 @@
 17.000 17.000 17.000 
 18.000 18.000 18.000 
 19.000 19.000 19.000 
+20.000 20.000 20.000 
+8.000 8.000 8.000 
 9.000 9.000 9.000 
 10.000 10.000 10.000 
 11.000 11.000 11.000 
@@ -781,7 +782,9 @@
 17.000 17.000 17.000 
 18.000 18.000 18.000 
 19.000 19.000 19.000 
-20.000 20.000 20.000 
+7.000 7.000 7.000 
+8.000 8.000 8.000 
+9.000 9.000 9.000 
 10.000 10.000 10.000 
 11.000 11.000 11.000 
 12.000 12.000 12.000 
@@ -791,9 +794,6 @@
 16.000 16.000 16.000 
 17.000 17.000 17.000 
 18.000 18.000 18.000 
-19.000 19.000 19.000 
-20.000 20.000 20.000 
-21.000 21.000 21.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -806,11 +806,22 @@
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
+5.000 5.000 5.000 
+6.000 6.000 6.000 
+7.000 7.000 7.000 
+8.000 8.000 8.000 
+9.000 9.000 9.000 
+10.000 10.000 10.000 
+11.000 11.000 11.000 
 12.000 12.000 12.000 
 13.000 13.000 13.000 
 14.000 14.000 14.000 
 15.000 15.000 15.000 
 16.000 16.000 16.000 
+13.000 13.000 13.000 
+14.000 14.000 14.000 
+15.000 15.000 15.000 
+16.000 16.000 16.000 
 17.000 17.000 17.000 
 18.000 18.000 18.000 
 19.000 19.000 19.000 
@@ -818,18 +829,7 @@
 21.000 21.000 21.000 
 22.000 22.000 22.000 
 23.000 23.000 23.000 
-6.000 6.000 6.000 
-7.000 7.000 7.000 
-8.000 8.000 8.000 
-9.000 9.000 9.000 
-10.000 10.000 10.000 
-11.000 11.000 11.000 
-12.000 12.000 12.000 
-13.000 13.000 13.000 
-14.000 14.000 14.000 
-15.000 15.000 15.000 
-16.000 16.000 16.000 
-17.000 17.000 17.000 
+24.000 24.000 24.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -842,9 +842,6 @@
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
-8.000 8.000 8.000 
-9.000 9.000 9.000 
-10.000 10.000 10.000 
 11.000 11.000 11.000 
 12.000 12.000 12.000 
 13.000 13.000 13.000 
@@ -854,7 +851,9 @@
 17.000 17.000 17.000 
 18.000 18.000 18.000 
 19.000 19.000 19.000 
-9.000 9.000 9.000 
+20.000 20.000 20.000 
+21.000 21.000 21.000 
+22.000 22.000 22.000 
 10.000 10.000 10.000 
 11.000 11.000 11.000 
 12.000 12.000 12.000 
@@ -866,6 +865,8 @@
 18.000 18.000 18.000 
 19.000 19.000 19.000 
 20.000 20.000 20.000 
+21.000 21.000 21.000 
+9.000 9.000 9.000 
 10.000 10.000 10.000 
 11.000 11.000 11.000 
 12.000 12.000 12.000 
@@ -877,7 +878,9 @@
 18.000 18.000 18.000 
 19.000 19.000 19.000 
 20.000 20.000 20.000 
-21.000 21.000 21.000 
+8.000 8.000 8.000 
+9.000 9.000 9.000 
+10.000 10.000 10.000 
 11.000 11.000 11.000 
 12.000 12.000 12.000 
 13.000 13.000 13.000 
@@ -887,9 +890,6 @@
 17.000 17.000 17.000 
 18.000 18.000 18.000 
 19.000 19.000 19.000 
-20.000 20.000 20.000 
-21.000 21.000 21.000 
-22.000 22.000 22.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -902,11 +902,22 @@
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
+6.000 6.000 6.000 
+7.000 7.000 7.000 
+8.000 8.000 8.000 
+9.000 9.000 9.000 
+10.000 10.000 10.000 
+11.000 11.000 11.000 
+12.000 12.000 12.000 
 13.000 13.000 13.000 
 14.000 14.000 14.000 
 15.000 15.000 15.000 
 16.000 16.000 16.000 
 17.000 17.000 17.000 
+14.000 14.000 14.000 
+15.000 15.000 15.000 
+16.000 16.000 16.000 
+17.000 17.000 17.000 
 18.000 18.000 18.000 
 19.000 19.000 19.000 
 20.000 20.000 20.000 
@@ -914,18 +925,7 @@
 22.000 22.000 22.000 
 23.000 23.000 23.000 
 24.000 24.000 24.000 
-7.000 7.000 7.000 
-8.000 8.000 8.000 
-9.000 9.000 9.000 
-10.000 10.000 10.000 
-11.000 11.000 11.000 
-12.000 12.000 12.000 
-13.000 13.000 13.000 
-14.000 14.000 14.000 
-15.000 15.000 15.000 
-16.000 16.000 16.000 
-17.000 17.000 17.000 
-18.000 18.000 18.000 
+25.000 25.000 25.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -938,9 +938,6 @@
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
-9.000 9.000 9.000 
-10.000 10.000 10.000 
-11.000 11.000 11.000 
 12.000 12.000 12.000 
 13.000 13.000 13.000 
 14.000 14.000 14.000 
@@ -950,7 +947,9 @@
 18.000 18.000 18.000 
 19.000 19.000 19.000 
 20.000 20.000 20.000 
-10.000 10.000 10.000 
+21.000 21.000 21.000 
+22.000 22.000 22.000 
+23.000 23.000 23.000 
 11.000 11.000 11.000 
 12.000 12.000 12.000 
 13.000 13.000 13.000 
@@ -962,6 +961,8 @@
 19.000 19.000 19.000 
 20.000 20.000 20.000 
 21.000 21.000 21.000 
+22.000 22.000 22.000 
+10.000 10.000 10.000 
 11.000 11.000 11.000 
 12.000 12.000 12.000 
 13.000 13.000 13.000 
@@ -973,7 +974,9 @@
 19.000 19.000 19.000 
 20.000 20.000 20.000 
 21.000 21.000 21.000 
-22.000 22.000 22.000 
+9.000 9.000 9.000 
+10.000 10.000 10.000 
+11.000 11.000 11.000 
 12.000 12.000 12.000 
 13.000 13.000 13.000 
 14.000 14.000 14.000 
@@ -983,9 +986,6 @@
 18.000 18.000 18.000 
 19.000 19.000 19.000 
 20.000 20.000 20.000 
-21.000 21.000 21.000 
-22.000 22.000 22.000 
-23.000 23.000 23.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
@@ -998,15 +998,15 @@
 0.000 0.000 0.000 
 0.000 0.000 0.000 
 0.000 0.000 0.000 
+7.000 7.000 7.000 
+8.000 8.000 8.000 
+9.000 9.000 9.000 
+10.000 10.000 10.000 
+11.000 11.000 11.000 
+12.000 12.000 12.000 
+13.000 13.000 13.000 
 14.000 14.000 14.000 
 15.000 15.000 15.000 
 16.000 16.000 16.000 
 17.000 17.000 17.000 
 18.000 18.000 18.000 
-19.000 19.000 19.000 
-20.000 20.000 20.000 
-21.000 21.000 21.000 
-22.000 22.000 22.000 
-23.000 23.000 23.000 
-24.000 24.000 24.000 
-25.000 25.000 25.000 

Modified: grass/trunk/raster3d/r3.out.vtk/writeVTKData.c
===================================================================
--- grass/trunk/raster3d/r3.out.vtk/writeVTKData.c	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/raster3d/r3.out.vtk/writeVTKData.c	2011-06-17 20:10:37 UTC (rev 46728)
@@ -151,7 +151,7 @@
                     xcoor =
                         region.west + (region.ew_res / 2 +
                         region.ew_res * (x));
-                    /* Here the raster north->south coordinate system is used */
+                    /* Here the raster3d north->south coordinate system is used */
                     ycoor =
                         region.north - (region.ns_res / 2 +
                         region.ns_res * (y));
@@ -180,12 +180,12 @@
 
                      */
                     xcoor = region.west + (region.ew_res * (x)); /*0, 3, 4, 7 */
-                    /* Here the raster north->south coordinate system is used */
+                    /* Here the raster3d north->south coordinate system is used */
                     ycoor = region.north - (region.ns_res * (y)); /*2, 3, 6, 7 */
                     zcoor = (bottomval + z * (topval - bottomval) / (depths)) * scale; /*0, 1, 2, 3 */
 
                     xcoor1 = region.west + (region.ew_res + region.ew_res * (x)); /*1, 2, 5, 6 */
-                    /* Here the raster north->south coordinate system is used */
+                    /* Here the raster3d north->south coordinate system is used */
                     ycoor1 = region.north - (region.ns_res + region.ns_res * (y)); /*0, 1, 4, 5 */
                     zcoor1 = (bottomval + z * (topval - bottomval) / (depths) + (topval - bottomval) / (depths)) * scale; /*4, 5, ,6 ,7 */
 
@@ -343,10 +343,11 @@
     percentage = 0;
 
     for (z = 0; z < depths; z++) {
-        if (param.structgrid->answer) {
-            /* In case of structured grid data, the point/cell coordinates
-               are computed based on the north->south raster coordinate system 
-             */
+        /* In case of structured grid data, the point/cell coordinates
+           are computed based on the default north->south raster3d coordinate system.
+           We need to compute south -> north ordering for image data.
+         */
+        if (!param.structgrid->answer) {
             for (y = rows - 1; y >= 0; y--) {
                 G_percent(percentage, (rows * depths - 1), 10);
                 percentage++;
@@ -422,9 +423,10 @@
                         maprgb = map_b;
 
                     /* In case of structured grid data, the point/cell coordinates
-                       are computed based on the north->south raster coordinate system 
+                       are computed based on the default north->south raster3d coordinate system.
+                       We need to compute south -> north ordering for image data.
                      */
-                    if (param.structgrid->answer)
+                    if (!param.structgrid->answer)
                         value =
                         get_g3d_raster_value_as_double(maprgb, x, rows - y - 1, z,
                                                        typeIntern[k],
@@ -496,9 +498,10 @@
                         mapvect = map_z;
 
                     /* In case of structured grid data, the point/cell coordinates
-                       are computed based on the north->south raster coordinate system 
+                       are computed based on the default north->south raster3d coordinate system.
+                       We need to compute south -> north ordering for image data.
                      */
-                    if (param.structgrid->answer)
+                    if (!param.structgrid->answer)
                         value =
                         get_g3d_raster_value_as_double(mapvect, x, rows - y - 1, z,
                                                        typeIntern[k],

Modified: grass/trunk/raster3d/r3.to.rast/main.c
===================================================================
--- grass/trunk/raster3d/r3.to.rast/main.c	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/raster3d/r3.to.rast/main.c	2011-06-17 20:10:37 UTC (rev 46728)
@@ -132,18 +132,14 @@
             G_percent(y, rows - 1, 10);
 
             for (x = 0; x < cols; x++) {
-                /* Because we write raster rows from north to south, but the coordinate system
-                 of the g3d cube read from south to north we need to adjust the
-                 Cube coordinates row = rows - y - 1.
-                 */
                 if (typeIntern == FCELL_TYPE) {
-                    G3d_getValue(map, x, rows - y - 1, z, &f1, typeIntern);
+                    G3d_getValue(map, x, y, z, &f1, typeIntern);
                     if (G3d_isNullValueNum(&f1, FCELL_TYPE))
                         Rast_set_null_value(&fcell[x], 1, FCELL_TYPE);
                     else
                         fcell[x] = (FCELL) f1;
                 } else {
-                    G3d_getValue(map, x, rows - y - 1, z, &d1, typeIntern);
+                    G3d_getValue(map, x, y, z, &d1, typeIntern);
                     if (G3d_isNullValueNum(&d1, DCELL_TYPE))
                         Rast_set_null_value(&dcell[x], 1, DCELL_TYPE);
                     else

Modified: grass/trunk/raster3d/r3.to.rast/test.r3.to.rast.sh
===================================================================
--- grass/trunk/raster3d/r3.to.rast/test.r3.to.rast.sh	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/raster3d/r3.to.rast/test.r3.to.rast.sh	2011-06-17 20:10:37 UTC (rev 46728)
@@ -7,8 +7,7 @@
 # voxel data with r3.mapcalc. The region setting 
 # should work for UTM and LL test locations
 g.region s=0 n=80 w=0 e=120 b=0 t=50 res=10 res3=10 -p3
-# Now create a voxel map with value = col + row + depth. Beware the 
-# raster3d module count from south to north.
+# Now create a voxel map with value = col + row + depth. 
 r3.mapcalc --o expr="volume = col() + row() + depth()"
 # Add null value information
 r3.mapcalc --o expr="volume_null = if(row() == 1 || row() == 5, null(), volume)"

Modified: grass/trunk/raster3d/r3.to.rast/test_raster_slice_1_00001.ref
===================================================================
--- grass/trunk/raster3d/r3.to.rast/test_raster_slice_1_00001.ref	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/raster3d/r3.to.rast/test_raster_slice_1_00001.ref	2011-06-17 20:10:37 UTC (rev 46728)
@@ -4,11 +4,11 @@
 west: 0
 rows: 8
 cols: 12
-10 11 12 13 14 15 16 17 18 19 20 21 
-9 10 11 12 13 14 15 16 17 18 19 20 
-8 9 10 11 12 13 14 15 16 17 18 19 
 * * * * * * * * * * * * 
+4 5 6 7 8 9 10 11 12 13 14 15 
+5 6 7 8 9 10 11 12 13 14 15 16 
 6 7 8 9 10 11 12 13 14 15 16 17 
-5 6 7 8 9 10 11 12 13 14 15 16 
-4 5 6 7 8 9 10 11 12 13 14 15 
 * * * * * * * * * * * * 
+8 9 10 11 12 13 14 15 16 17 18 19 
+9 10 11 12 13 14 15 16 17 18 19 20 
+10 11 12 13 14 15 16 17 18 19 20 21 

Modified: grass/trunk/raster3d/r3.to.rast/test_raster_slice_1_00002.ref
===================================================================
--- grass/trunk/raster3d/r3.to.rast/test_raster_slice_1_00002.ref	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/raster3d/r3.to.rast/test_raster_slice_1_00002.ref	2011-06-17 20:10:37 UTC (rev 46728)
@@ -4,11 +4,11 @@
 west: 0
 rows: 8
 cols: 12
-11 12 13 14 15 16 17 18 19 20 21 22 
-10 11 12 13 14 15 16 17 18 19 20 21 
-9 10 11 12 13 14 15 16 17 18 19 20 
 * * * * * * * * * * * * 
+5 6 7 8 9 10 11 12 13 14 15 16 
+6 7 8 9 10 11 12 13 14 15 16 17 
 7 8 9 10 11 12 13 14 15 16 17 18 
-6 7 8 9 10 11 12 13 14 15 16 17 
-5 6 7 8 9 10 11 12 13 14 15 16 
 * * * * * * * * * * * * 
+9 10 11 12 13 14 15 16 17 18 19 20 
+10 11 12 13 14 15 16 17 18 19 20 21 
+11 12 13 14 15 16 17 18 19 20 21 22 

Modified: grass/trunk/raster3d/r3.to.rast/test_raster_slice_1_00003.ref
===================================================================
--- grass/trunk/raster3d/r3.to.rast/test_raster_slice_1_00003.ref	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/raster3d/r3.to.rast/test_raster_slice_1_00003.ref	2011-06-17 20:10:37 UTC (rev 46728)
@@ -4,11 +4,11 @@
 west: 0
 rows: 8
 cols: 12
-12 13 14 15 16 17 18 19 20 21 22 23 
-11 12 13 14 15 16 17 18 19 20 21 22 
-10 11 12 13 14 15 16 17 18 19 20 21 
 * * * * * * * * * * * * 
+6 7 8 9 10 11 12 13 14 15 16 17 
+7 8 9 10 11 12 13 14 15 16 17 18 
 8 9 10 11 12 13 14 15 16 17 18 19 
-7 8 9 10 11 12 13 14 15 16 17 18 
-6 7 8 9 10 11 12 13 14 15 16 17 
 * * * * * * * * * * * * 
+10 11 12 13 14 15 16 17 18 19 20 21 
+11 12 13 14 15 16 17 18 19 20 21 22 
+12 13 14 15 16 17 18 19 20 21 22 23 

Modified: grass/trunk/raster3d/r3.to.rast/test_raster_slice_1_00004.ref
===================================================================
--- grass/trunk/raster3d/r3.to.rast/test_raster_slice_1_00004.ref	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/raster3d/r3.to.rast/test_raster_slice_1_00004.ref	2011-06-17 20:10:37 UTC (rev 46728)
@@ -4,11 +4,11 @@
 west: 0
 rows: 8
 cols: 12
-13 14 15 16 17 18 19 20 21 22 23 24 
-12 13 14 15 16 17 18 19 20 21 22 23 
-11 12 13 14 15 16 17 18 19 20 21 22 
 * * * * * * * * * * * * 
+7 8 9 10 11 12 13 14 15 16 17 18 
+8 9 10 11 12 13 14 15 16 17 18 19 
 9 10 11 12 13 14 15 16 17 18 19 20 
-8 9 10 11 12 13 14 15 16 17 18 19 
-7 8 9 10 11 12 13 14 15 16 17 18 
 * * * * * * * * * * * * 
+11 12 13 14 15 16 17 18 19 20 21 22 
+12 13 14 15 16 17 18 19 20 21 22 23 
+13 14 15 16 17 18 19 20 21 22 23 24 

Modified: grass/trunk/raster3d/r3.to.rast/test_raster_slice_1_00005.ref
===================================================================
--- grass/trunk/raster3d/r3.to.rast/test_raster_slice_1_00005.ref	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/raster3d/r3.to.rast/test_raster_slice_1_00005.ref	2011-06-17 20:10:37 UTC (rev 46728)
@@ -4,11 +4,11 @@
 west: 0
 rows: 8
 cols: 12
-14 15 16 17 18 19 20 21 22 23 24 25 
-13 14 15 16 17 18 19 20 21 22 23 24 
-12 13 14 15 16 17 18 19 20 21 22 23 
 * * * * * * * * * * * * 
+8 9 10 11 12 13 14 15 16 17 18 19 
+9 10 11 12 13 14 15 16 17 18 19 20 
 10 11 12 13 14 15 16 17 18 19 20 21 
-9 10 11 12 13 14 15 16 17 18 19 20 
-8 9 10 11 12 13 14 15 16 17 18 19 
 * * * * * * * * * * * * 
+12 13 14 15 16 17 18 19 20 21 22 23 
+13 14 15 16 17 18 19 20 21 22 23 24 
+14 15 16 17 18 19 20 21 22 23 24 25 

Modified: grass/trunk/raster3d/r3.to.rast/test_raster_slice_2_00001.ref
===================================================================
--- grass/trunk/raster3d/r3.to.rast/test_raster_slice_2_00001.ref	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/raster3d/r3.to.rast/test_raster_slice_2_00001.ref	2011-06-17 20:10:37 UTC (rev 46728)
@@ -4,14 +4,14 @@
 west: 0
 rows: 11
 cols: 16
-10 11 11 12 13 14 14 15 16 17 17 18 19 20 20 21 
-9 10 10 11 12 13 13 14 15 16 16 17 18 19 19 20 
-9 10 10 11 12 13 13 14 15 16 16 17 18 19 19 20 
-8 9 9 10 11 12 12 13 14 15 15 16 17 18 18 19 
 * * * * * * * * * * * * * * * * 
-* * * * * * * * * * * * * * * * 
-6 7 7 8 9 10 10 11 12 13 13 14 15 16 16 17 
-5 6 6 7 8 9 9 10 11 12 12 13 14 15 15 16 
 4 5 5 6 7 8 8 9 10 11 11 12 13 14 14 15 
 4 5 5 6 7 8 8 9 10 11 11 12 13 14 14 15 
+5 6 6 7 8 9 9 10 11 12 12 13 14 15 15 16 
+6 7 7 8 9 10 10 11 12 13 13 14 15 16 16 17 
+6 7 7 8 9 10 10 11 12 13 13 14 15 16 16 17 
 * * * * * * * * * * * * * * * * 
+8 9 9 10 11 12 12 13 14 15 15 16 17 18 18 19 
+9 10 10 11 12 13 13 14 15 16 16 17 18 19 19 20 
+9 10 10 11 12 13 13 14 15 16 16 17 18 19 19 20 
+10 11 11 12 13 14 14 15 16 17 17 18 19 20 20 21 

Modified: grass/trunk/raster3d/r3.to.rast/test_raster_slice_2_00002.ref
===================================================================
--- grass/trunk/raster3d/r3.to.rast/test_raster_slice_2_00002.ref	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/raster3d/r3.to.rast/test_raster_slice_2_00002.ref	2011-06-17 20:10:37 UTC (rev 46728)
@@ -4,14 +4,14 @@
 west: 0
 rows: 11
 cols: 16
-11 12 12 13 14 15 15 16 17 18 18 19 20 21 21 22 
-10 11 11 12 13 14 14 15 16 17 17 18 19 20 20 21 
-10 11 11 12 13 14 14 15 16 17 17 18 19 20 20 21 
-9 10 10 11 12 13 13 14 15 16 16 17 18 19 19 20 
 * * * * * * * * * * * * * * * * 
-* * * * * * * * * * * * * * * * 
-7 8 8 9 10 11 11 12 13 14 14 15 16 17 17 18 
-6 7 7 8 9 10 10 11 12 13 13 14 15 16 16 17 
 5 6 6 7 8 9 9 10 11 12 12 13 14 15 15 16 
 5 6 6 7 8 9 9 10 11 12 12 13 14 15 15 16 
+6 7 7 8 9 10 10 11 12 13 13 14 15 16 16 17 
+7 8 8 9 10 11 11 12 13 14 14 15 16 17 17 18 
+7 8 8 9 10 11 11 12 13 14 14 15 16 17 17 18 
 * * * * * * * * * * * * * * * * 
+9 10 10 11 12 13 13 14 15 16 16 17 18 19 19 20 
+10 11 11 12 13 14 14 15 16 17 17 18 19 20 20 21 
+10 11 11 12 13 14 14 15 16 17 17 18 19 20 20 21 
+11 12 12 13 14 15 15 16 17 18 18 19 20 21 21 22 

Modified: grass/trunk/raster3d/r3.to.rast/test_raster_slice_2_00003.ref
===================================================================
--- grass/trunk/raster3d/r3.to.rast/test_raster_slice_2_00003.ref	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/raster3d/r3.to.rast/test_raster_slice_2_00003.ref	2011-06-17 20:10:37 UTC (rev 46728)
@@ -4,14 +4,14 @@
 west: 0
 rows: 11
 cols: 16
-12 13 13 14 15 16 16 17 18 19 19 20 21 22 22 23 
-11 12 12 13 14 15 15 16 17 18 18 19 20 21 21 22 
-11 12 12 13 14 15 15 16 17 18 18 19 20 21 21 22 
-10 11 11 12 13 14 14 15 16 17 17 18 19 20 20 21 
 * * * * * * * * * * * * * * * * 
-* * * * * * * * * * * * * * * * 
-8 9 9 10 11 12 12 13 14 15 15 16 17 18 18 19 
-7 8 8 9 10 11 11 12 13 14 14 15 16 17 17 18 
 6 7 7 8 9 10 10 11 12 13 13 14 15 16 16 17 
 6 7 7 8 9 10 10 11 12 13 13 14 15 16 16 17 
+7 8 8 9 10 11 11 12 13 14 14 15 16 17 17 18 
+8 9 9 10 11 12 12 13 14 15 15 16 17 18 18 19 
+8 9 9 10 11 12 12 13 14 15 15 16 17 18 18 19 
 * * * * * * * * * * * * * * * * 
+10 11 11 12 13 14 14 15 16 17 17 18 19 20 20 21 
+11 12 12 13 14 15 15 16 17 18 18 19 20 21 21 22 
+11 12 12 13 14 15 15 16 17 18 18 19 20 21 21 22 
+12 13 13 14 15 16 16 17 18 19 19 20 21 22 22 23 

Modified: grass/trunk/raster3d/r3.to.rast/test_raster_slice_2_00004.ref
===================================================================
--- grass/trunk/raster3d/r3.to.rast/test_raster_slice_2_00004.ref	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/raster3d/r3.to.rast/test_raster_slice_2_00004.ref	2011-06-17 20:10:37 UTC (rev 46728)
@@ -4,14 +4,14 @@
 west: 0
 rows: 11
 cols: 16
-13 14 14 15 16 17 17 18 19 20 20 21 22 23 23 24 
-12 13 13 14 15 16 16 17 18 19 19 20 21 22 22 23 
-12 13 13 14 15 16 16 17 18 19 19 20 21 22 22 23 
-11 12 12 13 14 15 15 16 17 18 18 19 20 21 21 22 
 * * * * * * * * * * * * * * * * 
-* * * * * * * * * * * * * * * * 
-9 10 10 11 12 13 13 14 15 16 16 17 18 19 19 20 
-8 9 9 10 11 12 12 13 14 15 15 16 17 18 18 19 
 7 8 8 9 10 11 11 12 13 14 14 15 16 17 17 18 
 7 8 8 9 10 11 11 12 13 14 14 15 16 17 17 18 
+8 9 9 10 11 12 12 13 14 15 15 16 17 18 18 19 
+9 10 10 11 12 13 13 14 15 16 16 17 18 19 19 20 
+9 10 10 11 12 13 13 14 15 16 16 17 18 19 19 20 
 * * * * * * * * * * * * * * * * 
+11 12 12 13 14 15 15 16 17 18 18 19 20 21 21 22 
+12 13 13 14 15 16 16 17 18 19 19 20 21 22 22 23 
+12 13 13 14 15 16 16 17 18 19 19 20 21 22 22 23 
+13 14 14 15 16 17 17 18 19 20 20 21 22 23 23 24 

Modified: grass/trunk/raster3d/r3.to.rast/test_raster_slice_2_00005.ref
===================================================================
--- grass/trunk/raster3d/r3.to.rast/test_raster_slice_2_00005.ref	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/raster3d/r3.to.rast/test_raster_slice_2_00005.ref	2011-06-17 20:10:37 UTC (rev 46728)
@@ -4,14 +4,14 @@
 west: 0
 rows: 11
 cols: 16
-14 15 15 16 17 18 18 19 20 21 21 22 23 24 24 25 
-13 14 14 15 16 17 17 18 19 20 20 21 22 23 23 24 
-13 14 14 15 16 17 17 18 19 20 20 21 22 23 23 24 
-12 13 13 14 15 16 16 17 18 19 19 20 21 22 22 23 
 * * * * * * * * * * * * * * * * 
-* * * * * * * * * * * * * * * * 
-10 11 11 12 13 14 14 15 16 17 17 18 19 20 20 21 
-9 10 10 11 12 13 13 14 15 16 16 17 18 19 19 20 
 8 9 9 10 11 12 12 13 14 15 15 16 17 18 18 19 
 8 9 9 10 11 12 12 13 14 15 15 16 17 18 18 19 
+9 10 10 11 12 13 13 14 15 16 16 17 18 19 19 20 
+10 11 11 12 13 14 14 15 16 17 17 18 19 20 20 21 
+10 11 11 12 13 14 14 15 16 17 17 18 19 20 20 21 
 * * * * * * * * * * * * * * * * 
+12 13 13 14 15 16 16 17 18 19 19 20 21 22 22 23 
+13 14 14 15 16 17 17 18 19 20 20 21 22 23 23 24 
+13 14 14 15 16 17 17 18 19 20 20 21 22 23 23 24 
+14 15 15 16 17 18 18 19 20 21 21 22 23 24 24 25 

Modified: grass/trunk/raster3d/r3.to.rast/test_raster_slice_3_00001.ref
===================================================================
--- grass/trunk/raster3d/r3.to.rast/test_raster_slice_3_00001.ref	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/raster3d/r3.to.rast/test_raster_slice_3_00001.ref	2011-06-17 20:10:37 UTC (rev 46728)
@@ -4,19 +4,19 @@
 west: 0
 rows: 16
 cols: 24
-10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 
-10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 
-9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 
-9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 
-8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 
-8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 
 * * * * * * * * * * * * * * * * * * * * * * * * 
 * * * * * * * * * * * * * * * * * * * * * * * * 
+4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 
+4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 
+5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 
+5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 
 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 
 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 
-5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 
-5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 
-4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 
-4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 
 * * * * * * * * * * * * * * * * * * * * * * * * 
 * * * * * * * * * * * * * * * * * * * * * * * * 
+8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 
+8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 
+9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 
+9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 
+10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 
+10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 

Modified: grass/trunk/raster3d/r3.to.rast/test_raster_slice_3_00002.ref
===================================================================
--- grass/trunk/raster3d/r3.to.rast/test_raster_slice_3_00002.ref	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/raster3d/r3.to.rast/test_raster_slice_3_00002.ref	2011-06-17 20:10:37 UTC (rev 46728)
@@ -4,19 +4,19 @@
 west: 0
 rows: 16
 cols: 24
-11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 
-11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 
-10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 
-10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 
-9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 
-9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 
 * * * * * * * * * * * * * * * * * * * * * * * * 
 * * * * * * * * * * * * * * * * * * * * * * * * 
+5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 
+5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 
+6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 
+6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 
 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 
 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 
-6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 
-6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 
-5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 
-5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 
 * * * * * * * * * * * * * * * * * * * * * * * * 
 * * * * * * * * * * * * * * * * * * * * * * * * 
+9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 
+9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 
+10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 
+10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 
+11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 
+11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 

Modified: grass/trunk/raster3d/r3.to.rast/test_raster_slice_3_00003.ref
===================================================================
--- grass/trunk/raster3d/r3.to.rast/test_raster_slice_3_00003.ref	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/raster3d/r3.to.rast/test_raster_slice_3_00003.ref	2011-06-17 20:10:37 UTC (rev 46728)
@@ -4,19 +4,19 @@
 west: 0
 rows: 16
 cols: 24
-12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 
-12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 
-11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 
-11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 
-10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 
-10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 
 * * * * * * * * * * * * * * * * * * * * * * * * 
 * * * * * * * * * * * * * * * * * * * * * * * * 
+6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 
+6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 
+7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 
+7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 
 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 
 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 
-7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 
-7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 
-6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 
-6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 
 * * * * * * * * * * * * * * * * * * * * * * * * 
 * * * * * * * * * * * * * * * * * * * * * * * * 
+10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 
+10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 
+11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 
+11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 
+12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 
+12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 

Modified: grass/trunk/raster3d/r3.to.rast/test_raster_slice_3_00004.ref
===================================================================
--- grass/trunk/raster3d/r3.to.rast/test_raster_slice_3_00004.ref	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/raster3d/r3.to.rast/test_raster_slice_3_00004.ref	2011-06-17 20:10:37 UTC (rev 46728)
@@ -4,19 +4,19 @@
 west: 0
 rows: 16
 cols: 24
-13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 
-13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 
-12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 
-12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 
-11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 
-11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 
 * * * * * * * * * * * * * * * * * * * * * * * * 
 * * * * * * * * * * * * * * * * * * * * * * * * 
+7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 
+7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 
+8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 
+8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 
 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 
 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 
-8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 
-8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 
-7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 
-7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 
 * * * * * * * * * * * * * * * * * * * * * * * * 
 * * * * * * * * * * * * * * * * * * * * * * * * 
+11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 
+11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 
+12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 
+12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 
+13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 
+13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 

Modified: grass/trunk/raster3d/r3.to.rast/test_raster_slice_3_00005.ref
===================================================================
--- grass/trunk/raster3d/r3.to.rast/test_raster_slice_3_00005.ref	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/raster3d/r3.to.rast/test_raster_slice_3_00005.ref	2011-06-17 20:10:37 UTC (rev 46728)
@@ -4,19 +4,19 @@
 west: 0
 rows: 16
 cols: 24
-14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 
-14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 
-13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 
-13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 
-12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 
-12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 
 * * * * * * * * * * * * * * * * * * * * * * * * 
 * * * * * * * * * * * * * * * * * * * * * * * * 
+8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 
+8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 
+9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 
+9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 
 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 
 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 
-9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 
-9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 
-8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 
-8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 
 * * * * * * * * * * * * * * * * * * * * * * * * 
 * * * * * * * * * * * * * * * * * * * * * * * * 
+12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 
+12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 
+13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 
+13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 
+14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 
+14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 

Modified: grass/trunk/raster3d/raster3dintro.html
===================================================================
--- grass/trunk/raster3d/raster3dintro.html	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/raster3d/raster3dintro.html	2011-06-17 20:10:37 UTC (rev 46728)
@@ -13,6 +13,21 @@
 <!-- meta page description: 3D Raster data (voxel) introduction -->
 <h2>3D Raster data (voxel) in GRASS GIS</h2>
 
+The 3d raster data implementation in GRASS GIS uses the same coordinate system as
+raster data (row count from north to south) with an additional z dimension (depth)
+coutning from bottom to top.
+
+<pre>
+      Top (z)
+       |
+       |     North
+ West  | _ _ _ _ _ _ East (x)
+      / Bottom
+     /
+    /
+ South (y)
+</pre>
+
 <h3>3D Raster (voxel) import</h3>
 
 The module <a href="r3.in.ascii.html">r3.in.ascii</a> supports

Modified: grass/trunk/vector/v.to.rast3/main.c
===================================================================
--- grass/trunk/vector/v.to.rast3/main.c	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/vector/v.to.rast3/main.c	2011-06-17 20:10:37 UTC (rev 46728)
@@ -34,7 +34,7 @@
     struct Map_info Map;
     struct line_pnts *Points;
     struct line_cats *Cats;
-    void *map = NULL;
+    G3D_Map *map = NULL;
 
     int nlines, line, nrec, ctype;
 
@@ -122,11 +122,11 @@
 	    continue;
 	}
     /* Check if the coordinates are located in the cube */
-	if (!G3d_isValidLocation(map, Points->y[0], Points->x[0], Points->z[0])) {
+	if (!G3d_isValidLocation(&(map->region), Points->y[0], Points->x[0], Points->z[0])) {
 	    continue;
 	}
     /* Convert the north, east and top coorindate into row, col and depth*/
-    G3d_location2coord2(map, Points->y[0], Points->x[0], Points->z[0], &col, &row, &depth);
+    G3d_location2coord2(&(map->region), Points->y[0], Points->x[0], Points->z[0], &col, &row, &depth);
 
 	if (ctype == DB_C_TYPE_INT) {
 	    int ivalue;

Modified: grass/trunk/vector/v.vol.rst/user1.c
===================================================================
--- grass/trunk/vector/v.vol.rst/user1.c	2011-06-17 16:21:49 UTC (rev 46727)
+++ grass/trunk/vector/v.vol.rst/user1.c	2011-06-17 20:10:37 UTC (rev 46728)
@@ -423,8 +423,8 @@
   /*** Write elevation results ***/
     if (outz != NULL) {
 
-	cf1 = G3d_openNewOptTileSize(outz, 
-			      G3D_USE_CACHE_DEFAULT, &current_region, FCELL_TYPE, 32);
+	cf1 = G3d_openCellNew(outz, FCELL_TYPE,
+			      G3D_USE_CACHE_DEFAULT, &current_region);
 	if (cf1 == NULL) {
 	    sprintf(buff, "Can't open %s for writing ", outz);
 	    clean_fatal_error(buff);
@@ -442,7 +442,7 @@
 	cnt = 0;
 	for (iarc = 0; iarc < nsizl; iarc++) {
 
-	    for (y = 0; y < nsizr; y++) {	
+	    for (y = nsizr - 1; y >= 0; y--) {	/* changed by AV */
 		for (x = 0; x < nsizc; x++) {
 		    if (maskmap != NULL)
 			bmask = BM_get(bitmask, x, y);
@@ -474,8 +474,8 @@
   /*** Write out the gradient results ***/
     if (gradient != NULL) {
 
-	cf2 = G3d_openNewOptTileSize(gradient, 
-			      G3D_USE_CACHE_DEFAULT, &current_region, FCELL_TYPE, 32);
+	cf2 = G3d_openCellNew(gradient, FCELL_TYPE,
+			      G3D_USE_CACHE_DEFAULT, &current_region);
 	if (cf2 == NULL) {
 	    sprintf(buff, "Can't open %s for writing ", gradient);
 	    clean_fatal_error(buff);
@@ -493,7 +493,7 @@
 	cnt = 0;
 	for (iarc = 0; iarc < nsizl; iarc++) {
 
-	    for (y = 0; y < nsizr; y++) {	
+	    for (y = nsizr - 1; y >= 0; y--) {	/* changed by AV */
 		for (x = 0; x < nsizc; x++) {
 		    if (maskmap != NULL)
 			bmask = BM_get(bitmask, x, y);
@@ -525,8 +525,8 @@
   /*** Write out aspect1 results ***/
     if (aspect1 != NULL) {
 
-	cf3 = G3d_openNewOptTileSize(aspect1, 
-			      G3D_USE_CACHE_DEFAULT, &current_region, FCELL_TYPE, 32);
+	cf3 = G3d_openCellNew(aspect1, FCELL_TYPE,
+			      G3D_USE_CACHE_DEFAULT, &current_region);
 	if (cf3 == NULL) {
 	    sprintf(buff, "Can't open %s for writing ", aspect1);
 	    clean_fatal_error(buff);
@@ -544,7 +544,7 @@
 	cnt = 0;
 	for (iarc = 0; iarc < nsizl; iarc++) {
 
-	    for (y = 0; y < nsizr; y++) {	
+	    for (y = nsizr - 1; y >= 0; y--) {	/* changed by AV */
 		for (x = 0; x < nsizc; x++) {
 		    if (maskmap != NULL)
 			bmask = BM_get(bitmask, x, y);
@@ -576,8 +576,8 @@
   /*** Write out aspect2 results ***/
     if (aspect2 != NULL) {
 
-	cf4 = G3d_openNewOptTileSize(aspect2, 
-			      G3D_USE_CACHE_DEFAULT, &current_region, FCELL_TYPE, 32);
+	cf4 = G3d_openCellNew(aspect2, FCELL_TYPE,
+			      G3D_USE_CACHE_DEFAULT, &current_region);
 	if (cf4 == NULL) {
 	    sprintf(buff, "Can't open %s for writing ", aspect2);
 	    clean_fatal_error(buff);
@@ -595,7 +595,7 @@
 	cnt = 0;
 	for (iarc = 0; iarc < nsizl; iarc++) {
 
-	    for (y = 0; y < nsizr; y++) {	
+	    for (y = nsizr - 1; y >= 0; y--) {	/* changed by AV */
 		for (x = 0; x < nsizc; x++) {
 		    if (maskmap != NULL)
 			bmask = BM_get(bitmask, x, y);
@@ -627,8 +627,8 @@
   /*** Write out ncurv results ***/
     if (ncurv != NULL) {
 
-	cf5 = G3d_openNewOptTileSize(ncurv, 
-			      G3D_USE_CACHE_DEFAULT, &current_region, FCELL_TYPE, 32);
+	cf5 = G3d_openCellNew(ncurv, FCELL_TYPE,
+			      G3D_USE_CACHE_DEFAULT, &current_region);
 	if (cf5 == NULL) {
 	    sprintf(buff, "Can't open %s for writing ", ncurv);
 	    clean_fatal_error(buff);
@@ -646,7 +646,7 @@
 	cnt = 0;
 	for (iarc = 0; iarc < nsizl; iarc++) {
 
-	    for (y = 0; y < nsizr; y++) {	
+	    for (y = nsizr - 1; y >= 0; y--) {	/* changed by AV */
 		for (x = 0; x < nsizc; x++) {
 		    if (maskmap != NULL)
 			bmask = BM_get(bitmask, x, y);
@@ -678,8 +678,8 @@
   /*** Write out gcurv results ***/
     if (gcurv != NULL) {
 
-	cf6 = G3d_openNewOptTileSize(gcurv, 
-			      G3D_USE_CACHE_DEFAULT, &current_region, FCELL_TYPE, 32);
+	cf6 = G3d_openCellNew(gcurv, FCELL_TYPE,
+			      G3D_USE_CACHE_DEFAULT, &current_region);
 	if (cf6 == NULL) {
 	    sprintf(buff, "Can't open %s for writing ", gcurv);
 	    clean_fatal_error(buff);
@@ -697,7 +697,7 @@
 	cnt = 0;
 	for (iarc = 0; iarc < nsizl; iarc++) {
 
-	    for (y = 0; y < nsizr; y++) {	
+	    for (y = nsizr - 1; y >= 0; y--) {	/* changed by AV */
 		for (x = 0; x < nsizc; x++) {
 		    if (maskmap != NULL)
 			bmask = BM_get(bitmask, x, y);
@@ -729,8 +729,8 @@
   /*** Write mcurv results ***/
     if (mcurv != NULL) {
 
-	cf7 = G3d_openNewOptTileSize(mcurv,
-			      G3D_USE_CACHE_DEFAULT, &current_region, FCELL_TYPE, 32);
+	cf7 = G3d_openCellNew(mcurv, FCELL_TYPE,
+			      G3D_USE_CACHE_DEFAULT, &current_region);
 	if (cf7 == NULL) {
 	    sprintf(buff, "Can't open %s for writing ", mcurv);
 	    clean_fatal_error(buff);
@@ -748,7 +748,7 @@
 	cnt = 0;
 	for (iarc = 0; iarc < nsizl; iarc++) {
 
-	    for (y = 0; y < nsizr; y++) {	
+	    for (y = nsizr - 1; y >= 0; y--) {	/* changed by AV */
 		for (x = 0; x < nsizc; x++) {
 		    if (maskmap != NULL)
 			bmask = BM_get(bitmask, x, y);



More information about the grass-commit mailing list