Find boundaries of a shape

314 Views Asked by At

I have a bunch of points separated one from each other, that form a random shape (as shown on the picture)

For each of the points there is known x,y coordinates on the vector.

What I'm trying to do is to figure out how to get only those points which are located on the edge of the shape, so effectively if i join them with a line i will get a traced shape (as shown on the picture[blue line])

enter image description here

Will be happy to hear any advice or suggestion on how this can be achieved

Thanks