
Divide only the length of the edge by the homogenous coordinate, not the final coordinate. Also fix the swapping (though it's still a bit doubtfull if it's really needed)
Divide only the length of the edge by the homogenous coordinate, not the final coordinate. Also fix the swapping (though it's still a bit doubtfull if it's really needed)