Implementation of 3D line clipping (Cohen-Sutherland clipping algorithm) – Stuck in infinite loop
I have followed instructions from Cohen–Sutherland algorithm to implement this.
Normally clipping algorithm works just fine. But sometimes it get stuck in infinite loop with some lines while clipping an object.
For example., It is stuck in infinite loop with these 2 points which make one line.