Rendering large number of fat lines with segments

I need to render a large number of lines with segments and Raycaster should be able to identify the line.