Advertisement
WarPie90

Untitled

May 24th, 2016
462
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 1.68 KB | None | 0 0
  1. Compiling Time: 47ms.
  2.  
  3. Range check: (index:0, size:1)        //add point
  4. ---------------------------------
  5. Range check: (index:0, size:1)        //add point
  6. ---------------------------------
  7. Range check: (index:0, size:1)        //add point
  8. Dividing index: 0, because: (-1, -1, -1, -1)  //but node is filled. So we divide and add 4 adjacent nodes
  9. Divide got idx: 0                    
  10. 1, 2, 3, 4                            //alright, this is good. Now enter first node (index 1), test if it fits. Add to it's list
  11.  
  12. ------- > function TQuadTree.Insert(p, northWest)
  13. Range check: (index:0, size:5)        //WOOOOOT THE INDEX IS 0??? Something went to hell!
  14. Dividing index: 0, because: (-1, -1, -1, -1) //WOOOOT, WE ARE DIVIDING????
  15. Divide got idx: 0                     //THIS IS BAD
  16. 5, 6, 7, 8
  17. Range check: (index:5, size:9)
  18.  
  19.  
  20.  
  21. ... adds more points (... ignore this, shit's already shown to be broken)
  22. ---------------------------------
  23. Range check: (index:0, size:9)
  24. 5, -1, -1, -1
  25. Range check: (index:5, size:9)
  26. ---------------------------------
  27. Range check: (index:0, size:9)
  28. 5, -1, -1, -1
  29. Range check: (index:5, size:9)
  30. Dividing index: 5, because: (-1, -1, -1, -1)
  31. Divide got idx: 5
  32. 9, 10, 11, 12
  33. Range check: (index:9, size:13)
  34. Range check: (index:10, size:13)
  35. ---------------------------------
  36. Range check: (index:0, size:13)
  37. 5, -1, -1, -1
  38. Range check: (index:5, size:13)
  39. 9, 10, 11, 12
  40. Range check: (index:9, size:13)
  41. Range check: (index:10, size:13)
  42. ---------------------------------
  43. Range check: (index:0, size:13)
  44. 5, -1, -1, -1
  45. Range check: (index:5, size:13)
  46. Range check: (index:-1, size:13)
  47. Runtime error: "Range check: (index:0, size:13)" at line 80, column 19
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement