@saitoib
Sure, comparing geometry for adjacent segments is common.
You can try to play that simple, and compare every polygon against every other, but that created "n*n" loops, which is really inefficient. The better thing is to number the shapes (rectangles or whatever), make a list of segments with shape number, make a list of bounding boxes for them, sort the bounding box list, and use that sorted list to quickly narrow down if a given segment overlaps with others.
Recently, I realized the better way is to make a "k-d" tree of the bounding boxes, so you can find overlapping stuff essentially for free. Not totally free, but enough to be called free for a couple million shapes.
Like I said, simple question, deep rabbit hole.
internal protected virtual unsafe Human() : mostlyHarmless
I'm just here for the Shelties