another depth-first fix. this time for pool tops

This commit is contained in:
Stewart Allen 2020-02-08 10:33:45 -05:00
commit cbfb92a462
2 changed files with 5 additions and 4 deletions

View file

@ -984,9 +984,10 @@ var gs_kiri_print = exports;
// pools are sorted smallest to largest. pools are polygons with an // pools are sorted smallest to largest. pools are polygons with an
// attached 'pool' array of polygons // attached 'pool' array of polygons
layers.forEach(function(pools) { layers.forEach(function(pools) {
pools.forEach(function(poolPoly) { // pools.forEach(function(poolPoly) {
emitPool(poolPoly); // emitPool(poolPoly);
}); // });
poly2polyEmit(pools, startPoint, emitPool, "del_ptop");
}) })
return startPoint; return startPoint;
} }

View file

@ -1,7 +1,7 @@
var exports = { var exports = {
COPYRIGHT:"Copyright (C) 2014-2019 Stewart Allen <sa@grid.space> - All Rights Reserved", COPYRIGHT:"Copyright (C) 2014-2019 Stewart Allen <sa@grid.space> - All Rights Reserved",
LICENSE:"See the license.md file included with the source distribution", LICENSE:"See the license.md file included with the source distribution",
VERSION:"1.5.3" VERSION:"1.5.4"
}; };
if (!module) var module = {}; if (!module) var module = {};
module.exports = exports; module.exports = exports;