re-add rounding on cached points b/c of found corner cases

This commit is contained in:
Stewart Allen 2022-01-10 11:38:31 -05:00
commit 7c4b41173d
2 changed files with 3 additions and 3 deletions

View file

@ -735,7 +735,7 @@
function getOverlappingRanges(lo, hi) {
let ranges = [];
for (let range of settings.process.ranges) {
for (let range of settings.process.ranges || []) {
let in_lo = range.lo >= lo && range.lo <= hi;
let in_hi = range.hi >= lo && range.hi <= hi;
if (in_lo || in_hi) {

View file

@ -715,8 +715,8 @@
// create point map, unique point list and point group arrays
input.forEach(function(line) {
p1 = cachedPoint(line.p1);
p2 = cachedPoint(line.p2);
p1 = cachedPoint(line.p1.round(4));
p2 = cachedPoint(line.p2.round(4));
addConnected(p1,p2);
addConnected(p2,p1);
});