Connecting points in Mathematica

wolfram-mathematica

Solution

Some of what you are looking for is in the `ComputationalGeometry` Package. In particular, `ConvexHull` will give you the outer points listed in counterclockwise direction. At which point you can use `Line` to connect them together. The inner paths are a bit trickier, and I don't think there is an exact match. But, a `DelaunayTriangulation` comes closest. It essentially breaks your list of points up into sets of triangles. I don't know of a built in function that would break it into rectangles, though.

Problem

I have a collection of points displayed in a graphic: alt text http://img69.imageshack.us/img69/874/plc1k1lrqynuyshgrdegvfy.jpg I'd like to know if there is any command that will connect them automatically along the xx and yy axis. This can be better understood looking at the following picture: alt text http://img341.imageshack.us/img341/5926/tr53exnkpeofcuiw40koyks.jpg (I am not asking how to implement the algorithm myself!). Thanks

Original source