There's still a small bug with the edge generating

For the algorithm to work the shape *must* be closed, after
snapping the coordinates, two edges are not consecutive and thus
the rasterization is not closed and a winding is propagated to the
right