This is a fairly outdated question, but I found it while trying to solve the same problem. It is fair to share the solution that I pressed, so the next poor juice should not understand it myself.
I have no idea if this is a particularly good way to do something, and I suspect it will be difficult if you start using curved cells, but it worked fine for my purposes.
The main problem is that you only have one vertex for infinite edges, so you need to calculate the direction vector yourself. The direction to use is perpendicular to the vector between two points separated by an edge.
#include <vector>
Edward washhouse
source share