I am trying to group an island of points that are represent a grouping across a canvas as in the image below.
I can isolate the points and find the outeredge using some proximty rules but I cannot order the points to draw a curve of the edge condition. the main issue I am having is figuring out how to isolate each grouping/cluster of colour. So far I have managed to group a horizontal and vertical break up of the points but can’t seem to get the two to correlate.
Any help would be greatly appreciated as this is keeping me up at night.