- Green Boxes = rectangles
- red dots = edge points
- red lines = to be generated from convex hull algorithm
I have a problem with creating the convex hull algorithm. I want to select or collect all the edges from these rectangles and draw convex hull around through these edges (See red dots from the Image). To make my algorithm more efficient, I don't know how to deselect or eliminate the points (X black points) inside all rectangles.
Could someone give me a solution for this?
Thanks in advance