push part on z to accomodate anchor. match anchor width to brim, when set

This commit is contained in:
Stewart Allen 2021-04-13 09:57:56 -04:00
commit e92adbdb3d
2 changed files with 12 additions and 0 deletions

View file

@ -350,6 +350,12 @@
while (start.up && start.topShells().length === 0) {
start = start.up;
}
// if a brim applies, add that width to anchor
let brim = spro.firstLayerBrim || 0;
if (brim) {
minx -= brim;
maxx += brim;
}
while (offset && start && offset >= sliceHeight) {
let addto = start.down;
if (!addto) {