fix missing trace reference. alert on invalid z bottom

This commit is contained in:
Stewart Allen 2020-07-02 14:21:29 -04:00
commit 6088bc7684

View file

@ -896,6 +896,10 @@
return ondone("no processes selected"); return ondone("no processes selected");
} }
if (zMin >= bounds.max.z) {
return ondone(`invalid z bottom >= bounds z max ${bounds.max.z}`);
}
// cut outside traces at the right points // cut outside traces at the right points
const addCutoutTabs = function(slice, toolDiam) { const addCutoutTabs = function(slice, toolDiam) {
// too high // too high
@ -951,7 +955,7 @@
}); });
if (notabs) { if (notabs) {
console.log(`unable to compute tabs for ${notabs} traces @ z=${slice.z}`, trace); console.log(`unable to compute tabs for ${notabs} traces @ z=${slice.z}`);
} }
slice.tops[0].traces = nutrace; slice.tops[0].traces = nutrace;