Source code for buildMesh and mrMeshSrv