iconEuler Examples

Convex Hull

by WK
>load findhull
exports findhull()
some test data:
>test=normal(500,2);
lets try it
>h=findhull(test); ...
> plot2d(h[:,1]',h[:,2]',>filled,>fillcolor=red); ...
> plot2d(test[:,1],test[:,2],>points,>add,style=".."); insimg(antialias=0);

Convex Hull in the Plane

Examples Homepage