re-add rounding on cached points b/c of found corner cases
This commit is contained in:
parent
c487faacf6
commit
7c4b41173d
2 changed files with 3 additions and 3 deletions
|
|
@ -735,7 +735,7 @@
|
||||||
|
|
||||||
function getOverlappingRanges(lo, hi) {
|
function getOverlappingRanges(lo, hi) {
|
||||||
let ranges = [];
|
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_lo = range.lo >= lo && range.lo <= hi;
|
||||||
let in_hi = range.hi >= lo && range.hi <= hi;
|
let in_hi = range.hi >= lo && range.hi <= hi;
|
||||||
if (in_lo || in_hi) {
|
if (in_lo || in_hi) {
|
||||||
|
|
|
||||||
|
|
@ -715,8 +715,8 @@
|
||||||
|
|
||||||
// create point map, unique point list and point group arrays
|
// create point map, unique point list and point group arrays
|
||||||
input.forEach(function(line) {
|
input.forEach(function(line) {
|
||||||
p1 = cachedPoint(line.p1);
|
p1 = cachedPoint(line.p1.round(4));
|
||||||
p2 = cachedPoint(line.p2);
|
p2 = cachedPoint(line.p2.round(4));
|
||||||
addConnected(p1,p2);
|
addConnected(p1,p2);
|
||||||
addConnected(p2,p1);
|
addConnected(p2,p1);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue