- separated mesh algorithms in mesh.h/mesh.c