danger. major redo of core fdm slicer line connection algorithm. seems to handle non-manifold parts better. seems faster on torture tests. too good to be true?

This commit is contained in:
Stewart Allen 2022-01-23 12:43:51 -05:00
commit 86fd0e78ce
5 changed files with 75 additions and 157 deletions

View file

@ -272,7 +272,7 @@
}
function flatten(polys, to, crush) {
if (!to) to = [];
to = to || [];
polys.forEach(function(poly) {
poly.flattenTo(to);
if (crush) poly.inner = null;
@ -399,7 +399,7 @@
for (j=i+1; j<out.length; j++) {
if (!out[j]) continue;
union = out[i].union(out[j], minarea, all);
if (union) {
if (union && union.length) {
out[i] = null;
out[j] = null;
if (all) {