开发者

Find biggest possible polygon of group of points

How to find the biggest possible polygon of a group of points?

E.g. the following points are given:

0 | 3
4 | 0
1 | 1
0 | 0

-> Use the 1st, 2nd and 4th point to build a polygon (3r开发者_开发问答d point is useless)


What you seems to be looking for is the Convex Hull.

Example:

Find biggest possible polygon of group of points

The Gift Wrapping Algorithm is the easiest way to calculate the Convex Hull, but it isn't optimal.

Chan's algorithm is probably the simplest optimal algorithm.

HTH!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜