Estimating coverage with (possibly overlapping) rectangles #274
-
hi, just a quick question on recommended usage of the new RectClip functionality - apologies if this has been asked elsewhere (I couldn't see it anywhere) We have multiple rectangles (which themselves possibly overlap) that we are using to clip multiple polygons in order to estimate coverage of the subject pattern. Currently I just use Difference() with lists of (clip rectangles, subject polys) and calculate the area of the resulting clip - this appears to deal with overlaps automatically If we were to use RectClip it seems that there would be either unions (clipper overlaps) that need to be taken into account manually when calculating total coverage as a sum of the individual rectclips - is there a good way that you know of to do this? Or a method to generate the equivalent of Difference that uses any optimizations contained within the new functionality? edit: corrected description |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Not that I'm aware of, no. |
Beta Was this translation helpful? Give feedback.
Not that I'm aware of, no.
The ClipRect function could be modified to return difference rather than union.
However that'd be quite a bit of work and it's not something I'd likely be persuaded to do myself.