Generating polygons from n random points in 2-D plane
2 次查看(过去 30 天)
显示 更早的评论
Hello all: If I have n random points in a 2-D plane, what may be the approach to: (1) Count, (2) generate, the various possible n-point polygons (all available points should be the vertices).
Thanks immensely for your help.
4 个评论
Kirby Fears
2015-9-16
Is your only constraint that no pair of lines should cross? Do you care if the polygon is convex?
As you said, in each of n! combinations of vertices, you could come up with a cleverly efficient way to check if any lines cross.
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Computational Geometry 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!