I have a list of coordinates in a 2D plane (black dots)
.
They represent the path on the map. I need to get the coordinates (x,y) of the red tunnel polygon based on this list (red dots). The red dot coordinates must not be mixed up. They must follow each other along the border of the polygon like on image. The width of the tunnel is set by me myself.
I searched for a solution in many Python libraries but did not find it. I'm going to use the result in mpltPath.Path to count the number of occurrences of coordinates in the red polygon.
So, how can I solve this problem using python?