Adjust mesh loading, so that it better figures the boundary edges.