-void dumpRegion(const gRegion ®ion)
-{
- fprintf(stderr, "extends: %d %d -> %d %d (%d rects)\n",
- region.extends.left(), region.extends.top(),
- region.extends.right(), region.extends.bottom(), region.rects.size());
- for (int y=0; y<region.extends.bottom(); ++y)
- {
- for (int x=0; x<region.extends.right(); ++x)
- {
- unsigned char res = ' ';
- for (unsigned int i=0; i < region.rects.size(); ++i)
- if (region.rects[i].contains(ePoint(x, y)))
- res = '0' + i;
- fprintf(stderr, "%c", res);
- }
- fprintf(stderr, "\n");
- }
-}