commit 2e96ee72ade53807fca08079365599bbe2e57419
Author: Leszek Koltunski <leszek@distorted.org>
Date:   Thu Jul 28 01:20:23 2016 +0100

    minor formatting stuff

diff --git a/src/main/java/org/distorted/library/DistortedCubesGrid.java b/src/main/java/org/distorted/library/DistortedCubesGrid.java
index 52f5a52..9675f76 100644
--- a/src/main/java/org/distorted/library/DistortedCubesGrid.java
+++ b/src/main/java/org/distorted/library/DistortedCubesGrid.java
@@ -161,7 +161,7 @@ class DistortedCubesGrid extends DistortedObjectGrid
 ///////////////////////////////////////////////////////////////////////////////////////////////////
 // desc is guaranteed to be padded with 0s in the end (DistortedCubes constructor does it)
 
-   private void buildGrid(int cols, String desc, boolean frontOnly)
+   private void prepareDataStructures(int cols, String desc, boolean frontOnly)
      {
      mRows     =0;
      mCols     =0;
@@ -191,7 +191,7 @@ class DistortedCubesGrid extends DistortedObjectGrid
 // Water on the edges of the grid is also considered connected to itself!   
 //   
 // This function also creates a list of 'Edges'. Each Edge is a data structure from which later on we
-// will start building the side walls of each connected black of land (and sides of holes of water 
+// will start building the side walls of each connected block of land (and sides of holes of water
 // inside)   
    
    private void markRegions()
@@ -291,11 +291,11 @@ class DistortedCubesGrid extends DistortedObjectGrid
      {
      int td,lr; 
       
-	  int nw = (col>0       && row>0      ) ? (mCubes[row-1][col-1]%2) : 0;
-	  int w  = (col>0                     ) ? (mCubes[row  ][col-1]%2) : 0;
-	  int n  = (               row>0      ) ? (mCubes[row-1][col  ]%2) : 0;
-	  int c  =                                (mCubes[row  ][col  ]%2);
-	  int sw = (col>0       && row<mRows-1) ? (mCubes[row+1][col-1]%2) : 0;
+     int nw = (col>0       && row>0      ) ? (mCubes[row-1][col-1]%2) : 0;
+     int w  = (col>0                     ) ? (mCubes[row  ][col-1]%2) : 0;
+     int n  = (               row>0      ) ? (mCubes[row-1][col  ]%2) : 0;
+     int c  =                                (mCubes[row  ][col  ]%2);
+     int sw = (col>0       && row<mRows-1) ? (mCubes[row+1][col-1]%2) : 0;
      int s  = (               row<mRows-1) ? (mCubes[row+1][col  ]%2) : 0;
      int ne = (col<mCols-1 && row>0      ) ? (mCubes[row-1][col+1]%2) : 0;
      int e  = (col<mCols-1               ) ? (mCubes[row  ][col+1]%2) : 0;
@@ -337,11 +337,11 @@ class DistortedCubesGrid extends DistortedObjectGrid
      mNormalX[3] = lr*R;
      mNormalY[3] = td*R;
      /*
-	  android.util.Log.d("CUBES", "row="+row+" col="+col);
-	  android.util.Log.d("CUBES", mNormalX[0]+" "+mNormalY[0]);
-	  android.util.Log.d("CUBES", mNormalX[1]+" "+mNormalY[1]);
-	  android.util.Log.d("CUBES", mNormalX[2]+" "+mNormalY[2]);
-	  android.util.Log.d("CUBES", mNormalX[3]+" "+mNormalY[3]);
+     android.util.Log.d("CUBES", "row="+row+" col="+col);
+     android.util.Log.d("CUBES", mNormalX[0]+" "+mNormalY[0]);
+     android.util.Log.d("CUBES", mNormalX[1]+" "+mNormalY[1]);
+     android.util.Log.d("CUBES", mNormalX[2]+" "+mNormalY[2]);
+     android.util.Log.d("CUBES", mNormalX[3]+" "+mNormalY[3]);
      */
      }
    
@@ -699,7 +699,7 @@ class DistortedCubesGrid extends DistortedObjectGrid
  */
    public DistortedCubesGrid(int cols, String desc, boolean frontOnly)
       {
-      buildGrid(cols,desc,frontOnly);
+      prepareDataStructures(cols,desc,frontOnly);
        
       int numVertices=0;
       float[] positionData= new float[POSITION_DATA_SIZE*dataLength];
