Mesh2 geo conversion

Corrects some problems of the main pull-request. Reduces unneeded copies and ctor calls. Use STL for common algorithms.