368
368
rcLayerRegion& rj = regs[j];
372
372
if (!overlapRange(ri.ymin,ri.ymax+mergeHeight, rj.ymin,rj.ymax+mergeHeight))
374
374
// Skip if the height range would become too large.
375
375
const int ymin = rcMin(ri.ymin, rj.ymin);
377
377
if ((ymax - ymin) >= 255)
382
382
// Iterate over all regions which have the same layerId as 'rj'
383
383
for (int k = 0; k < nregs; ++k)