Re: Arrange points so polygon is not self intersecting
- From: beeworks@xxxxxxxxxxx
- Date: Tue, 10 Jul 2007 08:07:12 -0700
On Jul 9, 7:01 pm, mek...@xxxxxxxxx wrote:
Hi all,
I was wondering if someone knows some sort of algorithm to find an
order for a set of points so that the polygon of those points is not
self-intersecting. Assume this is a 2-D plane with Euclidean geometry.
Thanks!
Dan
CLOCK Alogrithm:
1) Call your set of points S. Find the convex hull of S.
2) Pick any point P within the convex hull that is not coincident with
one of the points in S.
3) Sweep a ray R emminating from P through 360 degrees. Each time R
sweeps through a point in S, put that point next in your ordered list.
Claim: Line segments connecting adjacent points in the list created by
Step 3, plus the line segment connecting the first and last points in
the list, form a (generally star) polygon with non-intersecting sides.
- MO
.
- Follow-Ups:
- Re: Arrange points so polygon is not self intersecting
- From: Michael Press
- Re: Arrange points so polygon is not self intersecting
- From: beeworks
- Re: Arrange points so polygon is not self intersecting
- References:
- Arrange points so polygon is not self intersecting
- From: mekmon
- Arrange points so polygon is not self intersecting
- Prev by Date: Re: How many handshakes.
- Next by Date: Re: Arrange points so polygon is not self intersecting
- Previous by thread: Re: Arrange points so polygon is not self intersecting
- Next by thread: Re: Arrange points so polygon is not self intersecting
- Index(es):
Relevant Pages
|