Fixed crossings in mesh generation.