Generating polygons from n random points in 2-D plane
古いコメントを表示
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 件のコメント
John D'Errico
2015 年 7 月 21 日
Brute force. Don't expect it to be fast, on a problem that will rapidly grow in complexity as the number of points grows. But then no algorithm will be fast here.
Amit
2015 年 9 月 16 日
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.
Amit
2015 年 10 月 29 日
回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Computational Geometry についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!