Area of a irregular shape

后端 未结 7 1776
挽巷
挽巷 2021-02-06 05:09

I have set of points which lies on the image. These set of points form a irregular closed shape. I need to find the area of this shape. Does any body which is the normal algorit

7条回答
  •  不要未来只要你来
    2021-02-06 05:49

    The simplest way to do this is probably to triangulate your shape and calculate the area of the triangles. Dave Eberly has a library called (Boost license) that may help with the triangulation; there is more information here. Look for TriangulateEC, for example.

提交回复
热议问题