move shell generation into slice (new) post-processor which means it can be distributed and co-located with slicing in minion
This commit is contained in:
parent
7072afb613
commit
e2ef4ff7e2
10 changed files with 246 additions and 156 deletions
|
|
@ -176,9 +176,21 @@
|
|||
}
|
||||
|
||||
PRO.addTop = function(poly) {
|
||||
let top = new Top(poly);
|
||||
this.tops.push(top);
|
||||
return top;
|
||||
if (poly.length) {
|
||||
let top = new Top(poly);
|
||||
this.tops.push(top);
|
||||
return top;
|
||||
} else {
|
||||
let top = new Top(poly.poly);
|
||||
top.fill_lines = poly.fill_lines;
|
||||
top.fill_off = poly.fill_off;
|
||||
top.last = poly.last;
|
||||
top.shells = poly.shells;
|
||||
this.tops.push(top);
|
||||
return top;
|
||||
}
|
||||
console.log('top', poly);
|
||||
throw "invalid top";
|
||||
};
|
||||
|
||||
PRO.findClosestPointTo = function(target) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue