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/
