This is a library based on the medit mesh viewer that creates ppm images of meshes.