Area of a polygon- using numerical integration

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 3K views
atee
Messages
1
Reaction score
0
Hi,

I need to calculate area of an irregular polygon which can be of any complex shape numerically i.e. using numerical integration techniques.

Please can anyone suggest any reference material / best way of going about this efficiently?

Akash
 
Physics news on Phys.org
The most accurate method will be to divide the polygon into triangles.

You can choose any corner, and try to eliminate it by drawing a line between the adjacent corners.
Since the polygon isn't convex, you need to check.
-that the line drawn is on the inside of the polygon
-that the line doesn't intersect any of the edges.

It gets harder if the border of the polygon consists of more than one loop.

Another idea is to look at polygon filling using scanlines, for example here:

http://ezekiel.vancouver.wsu.edu/~cs442/lectures/raster/polyfill/poly.pdf