remove dump. update notes

This commit is contained in:
Stewart Allen 2019-05-28 11:52:14 -04:00
commit 2c35de71bf
4 changed files with 3 additions and 43 deletions

View file

@ -916,33 +916,6 @@ var gs_base_polygon = exports;
return out; return out;
}; };
/**
* todo for debugging
*/
PRO.dump = function(msg,prec) {
var scope = this,
txt = [JSON.stringify({
len:scope.length,
area:scope.areaDeep(),
perim:scope.perimeterDeep(),
circ:scope.circularityDeep(),
inner:(scope.inner ? scope.inner.length : 0),
cw:scope.isClockwise(),
open:scope.isOpen(),
id:scope.id
})],
out = [], i = 0, p;
while (i<scope.points.length) {
p = scope.points[i++];
out.appendAll([UTIL.round(p.x,prec||5), UTIL.round(p.y,prec||5)]);
}
txt.push('['+out.join(',')+']');
DBUG.log((msg ? msg : '')+txt.join('\n'));
if (scope.inner) {
scope.inner.forEach(function(p) { p.dump("-- ",prec) });
}
};
/** /**
* return offset polygon(s) from original using distance. may result in * return offset polygon(s) from original using distance. may result in
* more than one new polygon if trace is self-intersecting or null if new * more than one new polygon if trace is self-intersecting or null if new

View file

@ -32,7 +32,6 @@ var gs_base_polygons = exports;
expand : expand, expand : expand,
union : union, union : union,
nest : nest, nest : nest,
dump : dump,
diff : doDiff, diff : doDiff,
filter : filter, filter : filter,
toClipper : toClipper, toClipper : toClipper,
@ -107,16 +106,6 @@ var gs_base_polygons = exports;
return output; return output;
} }
function dump(poly) {
if (Array.isArray(poly)) {
poly.forEach(function(p) { dump(p) });
} else {
console.group({id:poly.id, area:poly.area(), depth:poly.depth, inner:(poly.inner ? poly.inner.length : null)});
if (poly.inner) dump(poly.inner);
console.groupEnd();
};
}
/** /**
* todo use clipper polytree? * todo use clipper polytree?
* *

View file

@ -330,6 +330,7 @@ var gs_kiri_fdm = exports;
} }
} }
// exit if no slices
if (slices.length === 0) break; if (slices.length === 0) break;
// iterate over layer slices, find closest widget, print, eliminate // iterate over layer slices, find closest widget, print, eliminate

View file

@ -7,16 +7,15 @@
* bail on decimation if it's proving ineffective * bail on decimation if it's proving ineffective
* improve decimation speed by avoiding in/out of Point * improve decimation speed by avoiding in/out of Point
* server-side processing (determine protocol and storage) * server-side processing (determine protocol and storage)
* move more kiri code (like printing) into modules like serial * move printing/output into module
* refactor / simplify POLY.expand (put onus on collector) * refactor / simplify POLY.expand (put onus on collector)
* add simple solid (tube-like) rendering in place of lines
* cloned objects should share same slice data unless rotated * cloned objects should share same slice data unless rotated
* remember object's original position/orientation for reset/multi-object import alignment * remember object's original position/orientation for reset/multi-object import alignment
# FDM todo # FDM todo
* apply finish speed to exposed top and underside flat areas
* adaptive column to compensate for fine or layers that finish too quickly and melt * adaptive column to compensate for fine or layers that finish too quickly and melt
* apply finish speed to exposed top and underside flat areas
* store/recover grid:print target against printer selected in device * store/recover grid:print target against printer selected in device
* expand internal supporting flats * expand internal supporting flats
* first layer support speed should be same as shell speed * first layer support speed should be same as shell speed
@ -30,8 +29,6 @@
* feather sharp tips by reducing extrusion in area of overlap * feather sharp tips by reducing extrusion in area of overlap
* dual extruder support * dual extruder support
* add manual supports * add manual supports
* fan / layer control
* update forum
* option to support interior bridges when 0% infill * option to support interior bridges when 0% infill
* fix multiple part layout export offset (resend position @ print time) * fix multiple part layout export offset (resend position @ print time)