diff --git a/js/geo-polygons.js b/js/geo-polygons.js index ffaadc42..00097f02 100644 --- a/js/geo-polygons.js +++ b/js/geo-polygons.js @@ -661,6 +661,7 @@ var gs_base_polygons = exports; rayint.push(line[0]); rayint.push(line[1]); }) + return rayint; } diff --git a/js/kiri-print.js b/js/kiri-print.js index f2330bba..bd286906 100644 --- a/js/kiri-print.js +++ b/js/kiri-print.js @@ -624,6 +624,12 @@ var gs_kiri_print = exports; } skip = false; + // mark as used (temporarily) + p1.del = true; + p2.del = true; + marked += 2; + lastIndex = p1.index; + // if dist to new segment is less than thinWall // and segment length is less than thinWall then // just extrude to midpoint of next segment. this is @@ -652,13 +658,7 @@ var gs_kiri_print = exports; addOutput(preout, p2, fillMult, fillSpeed); } - // mark as used (temporarily) - p1.del = true; - p2.del = true; - - lastIndex = p1.index; startPoint = p2; - marked += 2; } // clear delete marks so we can re-print later diff --git a/js/kiri-slice.js b/js/kiri-slice.js index 0c0e3a8f..99f41c42 100644 --- a/js/kiri-slice.js +++ b/js/kiri-slice.js @@ -837,8 +837,8 @@ var gs_kiri_slice = exports; top.fill_lines_ang.poly.push(af.clone()); }); } - }); + }); return true; }; diff --git a/js/license.js b/js/license.js index 1a0c0462..f0a6b5cc 100644 --- a/js/license.js +++ b/js/license.js @@ -1,7 +1,7 @@ var exports = { COPYRIGHT:"Copyright (C) 2014-2017 Stewart Allen - All Rights Reserved", LICENSE:"Unauthorized copying, modification and re-distribution are strictly prohibited without prior written consent.", - VERSION:"1.0.96" + VERSION:"1.0.97" }; if (!module) var module = {}; module.exports = exports;