add slicing comments. comment out potentially unused xray() function in slice

This commit is contained in:
Stewart Allen 2022-09-16 22:12:27 -04:00
commit cde8745e7b
3 changed files with 14 additions and 13 deletions

View file

@ -174,16 +174,15 @@ class Slice {
return min;
};
xray(dash = 3) {
// console.log('xray', this);
this.output().setLayer(`xp`, 0x888800).addPolys(this.topPolys());
this.lines.forEach((line, i) => {
const group = i % dash;
const color = [ 0xff0000, 0x00ff00, 0x0000ff, 0xffff00, 0xff00ff ][group];
this.output().setLayer(`xl-${group}`, color).addLine(line.p1, line.p2);
});
}
// xray(dash = 3) {
// // console.log('xray', this);
// this.output().setLayer(`xp`, 0x888800).addPolys(this.topPolys());
// this.lines.forEach((line, i) => {
// const group = i % dash;
// const color = [ 0xff0000, 0x00ff00, 0x0000ff, 0xffff00, 0xff00ff ][group];
// this.output().setLayer(`xl-${group}`, color).addLine(line.p1, line.p2);
// });
// }
}
/**