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:
parent
114982fc72
commit
ad2857dfab
|
|
@ -218,6 +218,10 @@ cifGrowMinFunc(tile, table)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Ensure grid limit is not violated */
|
||||||
|
SetMinBoxGrid(&area, growDistance);
|
||||||
|
|
||||||
DBPaintPlane(cifPlane, &area, table, (PaintUndoInfo *) NULL);
|
DBPaintPlane(cifPlane, &area, table, (PaintUndoInfo *) NULL);
|
||||||
|
|
||||||
area = parea;
|
area = parea;
|
||||||
|
|
@ -274,6 +278,8 @@ cifGrowMinFunc(tile, table)
|
||||||
parea.r_ytop = area.r_ytop;
|
parea.r_ytop = area.r_ytop;
|
||||||
}
|
}
|
||||||
if ((width < growDistance) || (height < growDistance))
|
if ((width < growDistance) || (height < growDistance))
|
||||||
|
/* Ensure grid limit is not violated */
|
||||||
|
SetMinBoxGrid(&parea, growDistance);
|
||||||
DBPaintPlane(cifPlane, &parea, table, (PaintUndoInfo *) NULL);
|
DBPaintPlane(cifPlane, &parea, table, (PaintUndoInfo *) NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue