draw2d and convex polygon



El mi?, 29-09-2010 a las 12:29 +0200, Marco Rofei escribi?:
> Hi everyone,
> 
> i define a polygon like:
> 
> polygon([[3,2],[5,5],[7,2],[2,4]]);
> 
> Now, if i try to draw this poly, the draw2d function draws the poly
> with crossed edges. Is there a way or maybe a function that orders
> vertex of poly in order to obtain a convex poly without crossed edges?

draw doesn't provide such a function. As far as I can say, you have to
order the vertices by hand or write your own function (a convex hull
algorithm?) 

--
Mario