Concave and Convex Polygon - Turn arbitrary polygon into a convex polygon

后端 未结 4 1344
梦毁少年i
梦毁少年i 2021-02-15 14:47

How can I identify and remove those four RED points drawn in image \"alt

Those four points

4条回答
  •  长情又很酷
    2021-02-15 15:08

    I am guessing you have the coordinates for the points (P1, P2, etc.). You can get the angle generated between each three points and remove it if it is less than 180. For figuring out the angle, check How to calculate an angle from three points?

提交回复
热议问题