The example in the README doesn't repeat the first vertex at the end of a loop. Does the algorithm also work if the first vertex is repeated at the end? Does that have any consequences, maybe performance wise?
You shouldn't put the extra vertex at the end of each loop, they are automatically closed. I think that putting that extra vertex could break things, though I'd need to check to be sure.
The example in the README doesn't repeat the first vertex at the end of a loop. Does the algorithm also work if the first vertex is repeated at the end? Does that have any consequences, maybe performance wise?