make sure the edges are split in order (otherwise ngon crashes)