From d5b2512e27b5dd2f56c11525602d1bd0fb72adc3 Mon Sep 17 00:00:00 2001 From: Morippi Date: Thu, 8 Jul 2021 13:00:29 +0200 Subject: [PATCH] various fix --- .../lod/objects/quadTree/QuadTreeImage.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/seibel/lod/objects/quadTree/QuadTreeImage.java b/src/main/java/com/seibel/lod/objects/quadTree/QuadTreeImage.java index 8ecb55d6d..dfe7a7c22 100644 --- a/src/main/java/com/seibel/lod/objects/quadTree/QuadTreeImage.java +++ b/src/main/java/com/seibel/lod/objects/quadTree/QuadTreeImage.java @@ -122,13 +122,13 @@ public class QuadTreeImage extends JPanel { posZs.add(endZ / otherWidth); }else{ posXs.add(startX / otherWidth); - posXs.add((centerX / otherWidth)-1); + //posXs.add((centerX / otherWidth)-1); posXs.add(centerX / otherWidth); - posXs.add(endX / otherWidth); + //posXs.add(endX / otherWidth); posZs.add(startZ / otherWidth); - posZs.add((centerZ / otherWidth)-1); + //posZs.add((centerZ / otherWidth)-1); posZs.add(centerZ / otherWidth); - posZs.add(endZ / otherWidth); + //posZs.add(endZ / otherWidth); } for(Integer posXI : posXs){ @@ -147,7 +147,7 @@ public class QuadTreeImage extends JPanel { //lodList = lodQuadTree.getNodeList(false,false,false); listOfList.add(lodList); - +/* final List myDrawables = new ArrayList<>(); int amp = 2; for (LodNodeData data : lodList) { @@ -158,11 +158,12 @@ public class QuadTreeImage extends JPanel { Color.yellow, new BasicStroke(1))); for (int k = 0; k < myDrawables.size(); k++) { quadTreeImage.addMyDrawable(myDrawables.get(k)); + } + */ } - /* - int timerDelay = 100; + int timerDelay = 500; new Timer(timerDelay, new ActionListener() { private int drawCount = 0; @@ -188,7 +189,6 @@ public class QuadTreeImage extends JPanel { } } }).start(); - */ } public static void main(String[] args) {