diff --git a/src/geo/polygons.js b/src/geo/polygons.js index 147018e4..c9f86a23 100644 --- a/src/geo/polygons.js +++ b/src/geo/polygons.js @@ -655,6 +655,7 @@ // ensure angle is in the -90:90 range angle = angle % 180; + while (angle < -90) angle += 180; while (angle > 90) angle -= 180; // X,Y ray slope derived from angle diff --git a/src/geo/wasm.js b/src/geo/wasm.js index 88f38ac7..5dff5d43 100644 --- a/src/geo/wasm.js +++ b/src/geo/wasm.js @@ -161,10 +161,10 @@ if (!self.window) (function() { debug_string: (len, ptr) => { console.log('wasm', readString(ptr, len)) } }, wasi_snapshot_preview1: { - args_get: (count,bufsize) => { return 0 }, - args_sizes_get: (count,bufsize) => { }, - environ_get: (count,bufsize) => { return 0 }, - environ_sizes_get: (count,bufsize) => { }, + // args_get: (count,bufsize) => { return 0 }, + // args_sizes_get: (count,bufsize) => { }, + // environ_get: (count,bufsize) => { return 0 }, + // environ_sizes_get: (count,bufsize) => { }, proc_exit: (code) => { return code } } })) diff --git a/src/mode/fdm/slice.js b/src/mode/fdm/slice.js index 1a9df3ec..f351172f 100644 --- a/src/mode/fdm/slice.js +++ b/src/mode/fdm/slice.js @@ -1172,14 +1172,14 @@ } if (tofill.length > 0) { doFillArea(fillQ, tofill, angle, spacing, newfill); - top.fill_lines_norm = {angle:angle,spacing:spacing}; + // top.fill_lines_norm = {angle:angle,spacing:spacing}; } if (angfill.length > 0) { top.fill_lines_ang = {spacing:spacing,list:[],poly:[]}; for (let af of angfill) { doFillArea(fillQ, [af], af.fillang.angle + 45, spacing, newfill); - top.fill_lines_ang.list.push(af.fillang.angle + 45); - top.fill_lines_ang.poly.push(af.clone()); + // top.fill_lines_ang.list.push(af.fillang.angle + 45); + // top.fill_lines_ang.poly.push(af.clone()); } } }