Re: Polygon from Unordered set of points
- From: ImageAnalyst <imageanalyst@xxxxxxxxxxxxxx>
- Date: Mon, 1 Jun 2009 04:53:14 -0700 (PDT)
On May 31, 10:57 pm, "Balwinder Singh" <balwindersi...@xxxxxxxxx>
wrote:
Hi All,
I have an unordered set of points (x,y). I want to form a polygon from these vertices which should arrange the points in either clockwise or anticlockwise sense. Is it possible to do in MATLAB?
Thanks.
--------------------------
Can't you just find the centroid, then find the angle from the
centroid to each of the points, then sort based on angle? You'd get a
multi-pointed star-like object I would think.
.
- References:
- Polygon from Unordered set of points
- From: Balwinder Singh
- Polygon from Unordered set of points
- Prev by Date: Re: Polygon from Unordered set of points
- Next by Date: Re: PWM/clock signal generation from a USB-1024HLS DAQ board
- Previous by thread: Re: Polygon from Unordered set of points
- Next by thread: Re: Polygon from Unordered set of points
- Index(es):
Relevant Pages
|