if ((child.getType() & Spatial.TERRAIN_PAGE) != 0) {
if ((child.getType() & SceneElement.TERRAIN_PAGE) != 0) {
   public void fixNormals() {       if (children != null)       for (int x = children.size(); --x >= 0; ) {           Spatial child = (Spatial)children.get(x);           if ((child.getType() & Spatial.TERRAIN_PAGE) != 0) {               ((TerrainPage)child).fixNormals();           } else if ((child.getType() & Spatial.TERRAIN_BLOCK) != 0) {               TerrainBlock tb = (TerrainBlock)child;               TerrainBlock right = _findRightBlock(tb);               TerrainBlock down = _findDownBlock(tb);               int tbSize = tb.getSize();               if (right != null) {                   float[] normData = new float[3];                   for (int y = 0; y < tbSize; y++) {                       int index1 = ((y+1)*tbSize)-1;                       int index2 = (y*tbSize);                       right.getNormalBuffer(0).position(index2*3);                       right.getNormalBuffer(0).get(normData);                       tb.getNormalBuffer(0).position(index1*3);                       tb.getNormalBuffer(0).put(normData);                   }                   deleteNormalVBO(right);                                     }               if (down != null) {                   int rowStart = ((tbSize-1) * tbSize);                   float[] normData = new float[3];                   for (int z = 0; z < tbSize; z++) {                       int index1 = rowStart + z;                       int index2 = z;                       down.getNormalBuffer(0).position(index2*3);                       down.getNormalBuffer(0).get(normData);                       tb.getNormalBuffer(0).position(index1*3);                       tb.getNormalBuffer(0).put(normData);                   }                   deleteNormalVBO(down);               }               deleteNormalVBO(tb);           }       }   }