Cast a ray at LineSegments

In these examples I determine whether raycast selects a corner or edge or (more in the middle) the triangle.

Modify indexed BufferGeometry (mouse or input)
( http://discourse.threejs.hofk.de/2018/Xindex2018.html Example at the bottom)

http://sandboxthreef.threejs.hofk.de/modifyRaycastMultiMaterial.html