I have been working on this same problem for weeks now and I am to the following point.
I have a polygon area defined by a collection of adjacent points around the polygon (the first and last item in the collection is the same point).
Using that information I sliced the polygon into vertical sections and created an array that contains the points on the boundaries of the polygon created by the intersections of the slices. The points alternate on the boundaries based on the x-axis location of the slice (i.e. 4 points might include (0, 0), (0, 3), (3, 2), (3, 8))
I need to combine the points that are the bounding points of each of the slices to create new polygons.
This is mainly a logic issue I am trying to wrap my brain around so I know how to approach it in code.
Thanks for any help
I have a polygon area defined by a collection of adjacent points around the polygon (the first and last item in the collection is the same point).
Using that information I sliced the polygon into vertical sections and created an array that contains the points on the boundaries of the polygon created by the intersections of the slices. The points alternate on the boundaries based on the x-axis location of the slice (i.e. 4 points might include (0, 0), (0, 3), (3, 2), (3, 8))
I need to combine the points that are the bounding points of each of the slices to create new polygons.
This is mainly a logic issue I am trying to wrap my brain around so I know how to approach it in code.
Thanks for any help