Split arraylist of points into seperate arraylists of connected points
I have a function that looks like this
private void generateForests(ArrayList<Point> forest)
{
ArrayList<ArrayList<Point>> forests = new ArrayList<ArrayList<Point>>();
}
What i am trying to do is take all the points that border each other from
the forest arraylist and put each set of connected points in a separate
array-list, and finally add each individual arraylists to the forests
array-list.
No comments:
Post a Comment