Geoffrey; I'm not sure this is very much maintainable code here... apparently the demands for mesh editing structures go beyond what's possible with the current structure, making - basically simple tasks like triangle-quad conversions - very complex. There are too many different ideas and methods in one function here. Might be time to think over new methods and structures to simplify things and extend the standard api.