I am looking for a way to find the contour of two adjacent polygons.
Polygons are defined by a list of points ordered by occurrence in a polygon. In my case, there are no overlapping polygons, there are no gaps between the polygons, and there are no "holes" polygons.
I want to calculate the scheme of two polygons without any "holes". These pictures show the expected results.

, , , ( , ..). ( > 20 000). ?