This commit is contained in:
kepler155c
2017-09-18 14:46:21 -04:00
parent b4d3160cd8
commit 4116e046d1
14 changed files with 2491 additions and 2211 deletions

View File

@@ -2,8 +2,8 @@ local Point = require('point')
local Util = require('util')
local checkedNodes = { }
local nodes = { }
local box = { }
local nodes = { }
local box = { }
local oldCallback
local function toKey(pt)
@@ -149,7 +149,7 @@ return function(startPt, endPt, firstPt, verbose)
print(string.format('%d nodes remaining', Util.size(nodes)))
end
if Util.size(nodes) == 0 then
if not next(nodes) then
break
end