omit top/bottom from interleaving

This commit is contained in:
Stewart Allen 2024-12-04 16:53:21 -05:00
commit 570242e126

View file

@ -389,10 +389,13 @@ FDM.slice = function(settings, widget, onupdate, ondone) {
if (isBrick) { if (isBrick) {
let indices = slices.map(s => s.index); let indices = slices.map(s => s.index);
let first = indices[0]; let first = indices[1];
let last = indices.peek(); let last = indices[indices.length - 2];
let nu = []; let nu = [];
for (let slice of slices) { for (let slice of slices) {
if (slice.index < first || slice.index > last) {
continue;
}
let nuSlice = slice.clone(); let nuSlice = slice.clone();
nuSlice.z -= slice.height / 2; nuSlice.z -= slice.height / 2;
if (slice.index === first) { if (slice.index === first) {