Non-convex polygon - preprocess to use convex hull algorithm
问题 I used the convexHull algorithm to find the contour for some... irregular shape. It is not good enough though... Quite possibly because I can't guarantee that the shape I have is convex... I have a set of rectangles, and I would like to be able to get all points on the outside of the contour - but not throw any of the contour points out. The convex hull algorithm works great - but it works like the example on the right, so I lose some information on the contours. I want something that works