Current version of SurfaceManipulator and helper classes.
To run just import pattest.py from within Sage.
A window will appear. Click "File > New Similarity Surface".
Then click "Create > Draw Polygon".
Draw a convex polygon and press return.
Under "Action" you can recenter and zoom the picture.
You can also export a PS file from the "File" menu.