Vector3f origin2 = new Vector3f(-quarterSize * stepScale.x, 0, quarterSize * stepScale.z);
TerrainPage page1 = new TerrainPage(getName() + "Page1", blockSize, split, stepScale, heightBlock1, clod, totalSize, tempOffset, offsetAmount); page1.setLocalTranslation(origin1); page1.quadrant = 1; this.attachChild(page1);
    private void createQuadPage(int blockSize, int[] heightMap, boolean clod) {        //      create 4 terrain pages        int quarterSize = size >> 2;        int split = (size + 1) >> 1;                Vector2f tempOffset = new Vector2f();        offsetAmount += quarterSize;        //1 upper left        int[] heightBlock1 = createHeightSubBlock(heightMap,0,0,split);                Vector3f origin1 = new Vector3f(-quarterSize * stepScale.x, 0,                -quarterSize * stepScale.z);        tempOffset.x = offset.x;        tempOffset.y = offset.y;        tempOffset.x += origin1.x;        tempOffset.y += origin1.z;        TerrainPage page1 = new TerrainPage(getName() + "Page1", blockSize, split,                stepScale, heightBlock1, clod, totalSize, tempOffset,                offsetAmount);        page1.setLocalTranslation(origin1);        page1.quadrant = 1;        this.attachChild(page1);        //2 lower left        int[] heightBlock2 = createHeightSubBlock(heightMap,0,split-1,split);        Vector3f origin2 = new Vector3f(-quarterSize * stepScale.x, 0,                quarterSize * stepScale.z);        tempOffset.x = offset.x;        tempOffset.y = offset.y;        tempOffset.x += origin2.x;        tempOffset.y += origin2.z;        TerrainPage page2 = new TerrainPage(getName() + "Page2", blockSize, split,                stepScale, heightBlock2, clod, totalSize, tempOffset,                offsetAmount);        page2.setLocalTranslation(origin2);        page2.quadrant = 2;        this.attachChild(page2);        //3 upper right        int[] heightBlock3 = createHeightSubBlock(heightMap,split-1,0,split);                Vector3f origin3 = new Vector3f(quarterSize * stepScale.x, 0,                -quarterSize * stepScale.z);        tempOffset.x = offset.x;        tempOffset.y = offset.y;        tempOffset.x += origin3.x;        tempOffset.y += origin3.z;        TerrainPage page3 = new TerrainPage(getName() + "Page3", blockSize, split,                stepScale, heightBlock3, clod, totalSize, tempOffset,                offsetAmount);        page3.setLocalTranslation(origin3);        page3.quadrant = 3;        this.attachChild(page3);        ////        //4 lower right        int[] heightBlock4 = createHeightSubBlock(heightMap,split-1,split-1,split);                Vector3f origin4 = new Vector3f(quarterSize * stepScale.x, 0,                quarterSize * stepScale.z);        tempOffset.x = offset.x;        tempOffset.y = offset.y;        tempOffset.x += origin4.x;        tempOffset.y += origin4.z;        TerrainPage page4 = new TerrainPage(getName() + "Page4", blockSize, split,                stepScale, heightBlock4, clod, totalSize, tempOffset,                offsetAmount);        page4.setLocalTranslation(origin4);        page4.quadrant = 4;        this.attachChild(page4);    }