Since R59 raycasting on lines is possible and it works perfect. I'm displaying a tooltip on mouseover.
Because of growing data, I had performance issues, so I decided to switch from THREE.Geometry
to THREE.BufferGeometry
. Everything works fine instead of raycasting.... I get no errors or something else on mouseover, there happens really nothing!
Isn't it possible to intersect raycasting on a line which was build up with THREE.BufferGeometry
?
Yes,Raycaster
supports Line
with BufferGeometry
.
Be aware of the threshold
parameter described in the docs.
See https://threejs.org/examples/webgl_interactive_lines.html
three.js r.130