1 | initial version |
I add a constant positive shift Lz before output. This makes it possible to move lines into visible area in case they are out of the window. If initial Z1 and Z2 are negative and Z1 + Lz, Z2 + Lz are positive, the point which was closer to the coordinate origin (camera) becomes further away.