OSX Port of Meshfix by Alec Jacobson - http://www.alecjacobson.com/weblog/?p=2887