Port Mesh

Untested. Successfully compiling.