allow newSlice to track a specified widget to aid 4th axis visuals

This commit is contained in:
Stewart Allen 2022-11-02 10:43:58 -04:00
commit f588e2e5cf
5 changed files with 33 additions and 14 deletions

View file

@ -471,7 +471,6 @@ class OpOutline extends CamOp {
if (op.down <= 0) {
throw `invalid step down "${op.down}"`;
}
let toolDiam = this.toolDiam = new CAM.Tool(settings, op.tool).fluteDiameter();
updateToolDiams(toolDiam);
@ -622,6 +621,9 @@ class OpOutline extends CamOp {
slice.camLines = offset;
});
// when top expand fails above, it creates an empty slice
slices = slices.filter(s => s.camLines);
// project empty up and render
for (let slice of slices) {
if (false) slice.output()