I read your posts, and I have to agree with Brent's suggestion to draw the
polygon based on the order in which the points were clicked. Then give them
the option to move the list of points around.

On 12/20/06, bander <[EMAIL PROTECTED]> wrote:


I don't think there's any reason it needs to be completely convex, and I
don't think you should throw out points. But yes, I agree that he should
consider giving the user free reins.



that's a good algorithmic problem, and not a trivial  one:
http://en.wikipedia.org/wiki/Convex_hull

but if you draw the polygon based on the order in which the points were
clicked, (assuming the user will automatically generate a convex polygon)
then it will be a lot simpler.
--
View this message in context:
http://www.nabble.com/logic-help-tf2862831.html#a8001865
Sent from the JQuery mailing list archive at Nabble.com.


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/




--
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to