I have a set of points forming a polygon. However, any 3 points in this polygon can also be represented as an arc (starting at point 1, through point 2, to point 3).
I need to find the area of this polygon (which technically is not a polygon but an area formed by straight or curved lines from point to point).
My idea was, to exclude the arcs (say the middle point of each arc) and calculate the area of the resulting polygon separately and then add the areas of the arcs:
sum = 0 loop through points if next three points contain arc middle point add arc area to sum get rid of middle point of arc and use next point instead add area of points to sum
This will work for convex shapes but I don't know how to solve it for concave shapes.
How would I go about this?
//EDIT: The arcs are always circular arcs (~circle segments). The radius and the angle of the segment is known (it can be calculated from the 3 points).