experimental async threaded cam topo

This commit is contained in:
Stewart Allen 2023-01-08 14:04:02 -05:00
commit db13a61d3b
9 changed files with 158 additions and 35 deletions

View file

@ -35,6 +35,7 @@ FDM.init = function(kiri, api) {
const { ui, uc } = api;
const rangeVars = {
// slice
// "sliceHeight": LANG.sl_lahi_s,
"sliceShells": LANG.sl_shel_s,
"sliceFillType": LANG.fi_type,
"sliceFillWidth": LANG.fi_wdth_s,

View file

@ -296,7 +296,7 @@ FDM.slice = function(settings, widget, onupdate, ondone) {
z += h;
}
}
// reduce slice position by half height
// reduce slice position by half layer height
for (let i=0; i<zi.length; i++) {
zi[i] = (zi[i] - zh[i] / 2).round(3);
}