Merge branch 'master' of github.com:GridSpace/grid-apps

This commit is contained in:
Stewart Allen 2020-11-23 18:16:53 -05:00
commit bc7541a8dc
3 changed files with 9 additions and 3 deletions

View file

@ -60,6 +60,7 @@
* `B` outside cutting direction in roughing mode inverted
* `B` clear voids has double interior pass because wrong offset shadow used
* `B` top clearing operations should use linear, not offset, passes
* `F` use 3 registration holes to prevent rotation accidents (midline offset one axis)
* `F` parameterize dropping close points in prep.js. ensure long segments remain straight
* `F` flat and volumetric rendering of paths
* `F` z bounded slices (extension of z bottom offset feature)

View file

@ -688,8 +688,8 @@
}
}
// undo temp del/used marks
for (let i=0; i<stack.length; i++) stack[i].del = false;
// stack.forEach(function(p) { p.del = false });
}
// emit a polygon if it can be cleaned and still have 2 or more points

View file

@ -388,6 +388,11 @@
last = top_poly.clone(true);
top.shells = last;
} else {
// heal top open polygons if the ends are close (benchy tilt test)
top_poly.forEach(p => { if (p.open) {
let dist = p.first().distTo2D(p.last());
if (dist < 1) p.open = false;
} });
if (opt.thin) {
top.thin_fill = [];
let oso = {z, count, gaps: [], outs: [], minArea: 0.05};
@ -913,7 +918,7 @@
// return top.supports = supports;
// then union supports
supports = POLY.union(supports);
supports = POLY.union(supports, null, true);
// constrain support poly to top polys
supports = POLY.trimTo(supports, trimTo);
@ -963,7 +968,7 @@
if (!supports) return;
// union supports
supports = POLY.union(supports);
supports = POLY.union(supports, undefined, true);
// trim to clip offsets
if (slice.offsets) POLY.subtract(supports, slice.offsets, nsB, null, slice.z, min);