find the smallest containing convex polygon with a given number of points

前端 未结 2 740
醉话见心
醉话见心 2020-12-30 00:42

given a convex polgyon and a number N, how do I find the smallest polygon that

  1. contains every point from the original polygon
  2. has exactly N corner poi
2条回答
  •  Happy的楠姐
    2020-12-30 01:18

    While number of edges > N do
      remove the shortest edge by replacing its endpoints 
      with the intersection point of the adjacent edges
    

提交回复
热议问题