Corrected the "grow-min" CIF operator to grow more than the minimum

amount as needed to land on the specified minimum manufacturing grid.
This commit is contained in:
Tim Edwards 2020-11-11 14:06:12 -05:00
parent 114982fc72
commit ad2857dfab
1 changed files with 6 additions and 0 deletions

View File

@ -218,6 +218,10 @@ cifGrowMinFunc(tile, table)
}
}
}
/* Ensure grid limit is not violated */
SetMinBoxGrid(&area, growDistance);
DBPaintPlane(cifPlane, &area, table, (PaintUndoInfo *) NULL);
area = parea;
@ -274,6 +278,8 @@ cifGrowMinFunc(tile, table)
parea.r_ytop = area.r_ytop;
}
if ((width < growDistance) || (height < growDistance))
/* Ensure grid limit is not violated */
SetMinBoxGrid(&parea, growDistance);
DBPaintPlane(cifPlane, &parea, table, (PaintUndoInfo *) NULL);
}
}