remove dump. update notes
This commit is contained in:
parent
534484c992
commit
2c35de71bf
4 changed files with 3 additions and 43 deletions
|
|
@ -916,33 +916,6 @@ var gs_base_polygon = exports;
|
|||
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
|
||||
* more than one new polygon if trace is self-intersecting or null if new
|
||||
|
|
|
|||
|
|
@ -32,7 +32,6 @@ var gs_base_polygons = exports;
|
|||
expand : expand,
|
||||
union : union,
|
||||
nest : nest,
|
||||
dump : dump,
|
||||
diff : doDiff,
|
||||
filter : filter,
|
||||
toClipper : toClipper,
|
||||
|
|
@ -107,16 +106,6 @@ var gs_base_polygons = exports;
|
|||
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?
|
||||
*
|
||||
|
|
|
|||
|
|
@ -330,6 +330,7 @@ var gs_kiri_fdm = exports;
|
|||
}
|
||||
}
|
||||
|
||||
// exit if no slices
|
||||
if (slices.length === 0) break;
|
||||
|
||||
// iterate over layer slices, find closest widget, print, eliminate
|
||||
|
|
|
|||
7
notes.md
7
notes.md
|
|
@ -7,16 +7,15 @@
|
|||
* bail on decimation if it's proving ineffective
|
||||
* improve decimation speed by avoiding in/out of Point
|
||||
* 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)
|
||||
* add simple solid (tube-like) rendering in place of lines
|
||||
* cloned objects should share same slice data unless rotated
|
||||
* remember object's original position/orientation for reset/multi-object import alignment
|
||||
|
||||
# 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
|
||||
* apply finish speed to exposed top and underside flat areas
|
||||
* store/recover grid:print target against printer selected in device
|
||||
* expand internal supporting flats
|
||||
* first layer support speed should be same as shell speed
|
||||
|
|
@ -30,8 +29,6 @@
|
|||
* feather sharp tips by reducing extrusion in area of overlap
|
||||
* dual extruder support
|
||||
* add manual supports
|
||||
* fan / layer control
|
||||
* update forum
|
||||
* option to support interior bridges when 0% infill
|
||||
* fix multiple part layout export offset (resend position @ print time)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue