Mesh generation and surface tesselation