Polygon enclosing a set of points

后端 未结 4 678
执念已碎
执念已碎 2020-11-29 03:15

I have a set S of points (2D : defined by x and y) and I want to find P, the smallest (meaning : with the smallest number of points) polygon enclosing all the points of the

4条回答
  •  迷失自我
    2020-11-29 03:54

    You probably mean you want the smallest area, which is the convex hull.

    If you really do want the fewest points, you can just make a triangle with super-large vertex positions so that all your points are enclosed.

提交回复
热议问题