Area of a polygon- using numerical integration

Click For Summary
SUMMARY

The discussion focuses on calculating the area of an irregular polygon using numerical integration techniques. Akash suggests dividing the polygon into triangles, ensuring that the lines drawn between corners remain inside the polygon and do not intersect its edges. The conversation also highlights the complexity of polygons with multiple loops and recommends exploring polygon filling techniques using scanlines. For precise calculations, reference materials such as the Wikipedia article on polygons provide formulas for area and centroid determination.

PREREQUISITES
  • Understanding of numerical integration techniques
  • Familiarity with polygon triangulation methods
  • Knowledge of scanline algorithms for polygon filling
  • Basic geometry concepts related to polygons
NEXT STEPS
  • Research numerical integration techniques for area calculation
  • Learn about polygon triangulation algorithms
  • Explore scanline algorithms for efficient polygon filling
  • Study the formulas for area and centroid calculation from the Wikipedia article on polygons
USEFUL FOR

Mathematicians, computer graphics developers, and anyone involved in computational geometry or numerical methods for polygon area calculations.

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
 
Decomposing a general polygon into triangles is intuitive, but it can be problematic in practice.

If you know the coordinates of the vertices of a general polygon, this article has formulas for calculating the area and centroid:

http://en.wikipedia.org/wiki/Polygon
 

Similar threads

  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 5 ·
Replies
5
Views
5K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 28 ·
Replies
28
Views
6K
Replies
4
Views
1K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 5 ·
Replies
5
Views
4K