diff --git a/src/geo/polygons.js b/src/geo/polygons.js index c9f86a23..5f66b1c3 100644 --- a/src/geo/polygons.js +++ b/src/geo/polygons.js @@ -911,15 +911,15 @@ let ra = a[i]; let rb = b[i]; // test circularity - if (Math.abs(ra.c - rb.c) > 0.0005) { + if (Math.abs(ra.c - rb.c) > 0.001) { return false; } // test perimeter - if (Math.abs(ra.p - rb.p) > 0.001) { + if (Math.abs(ra.p - rb.p) > 0.01) { return false; } // test bounds - if (ra.b.delta(rb.b) > 0.001) { + if (ra.b.delta(rb.b) > 0.01) { return false; } } diff --git a/src/mode/sla/x_halot.js b/src/mode/sla/x_halot.js index 83b328bf..8196f494 100644 --- a/src/mode/sla/x_halot.js +++ b/src/mode/sla/x_halot.js @@ -42,7 +42,7 @@ } return str; } - console.log({ + let meta = { file, magic: read_string(), version: nextU16(), @@ -68,7 +68,41 @@ layer_lift_speed: nextU16(), down_speed: nextU16(), base_light_pwm: nextU16(), - layer_light_pwm: nextU16(), - }); + layer_light_pwm: nextU16() + }; + console.log(meta); + let layer_sizes = []; + for (let i=0; i