Finding vertices of the outer contour of intersecting polygons
Sounds like you’re looking for a way to do a Boolean union operation. There’s a couple of algorithms linked from that article that should do the trick.