Thanks for that! I have the problem that the line segments become invisible when zooming in close (I am also using DragControls). Do you have any idea why this could happen?
Edit: Setting frustumCulled
on the created line segments solved it (found here). Thanks again @prisoner849.