I would like to know the total area and centroid of polygon above line after clipping. The polygon could be either convex or concave. But not self intersect.
I know there are great libraries for polygon clipping. However, I think my case is special(simpler) and I really want to increase the performance.
Anyone know what is the best algorithm to handle this case here. Any existing code would be great.
References: Polygon clipping by a line best describes my problem.