I’m to select line objects in 3D space, but the issue I face is that some line objects are on top of other mesh objects (ie., surface mesh).
→ In the selection instance I’m intersecting only the line objects to the raycaster but still, in some specific cases lines are not picked up by the raycaster
var intersects = EngineService.Instance.raycaster.intersectObjects(nodes1, true);
where nodes1 are line objects.
The line and point threshold I’m using,
Note: world units are in meter
this.raycaster = new THREE.Raycaster();
this.raycaster.params.Line.threshold = 1 / 1000;
this.raycaster.params.Points.threshold = 1 / 1000;
objects in the scenario that are not picking up,
The Line marked in the above image is not picking up.
Any help is much appreciated, please let me know if you need more info.
I’m pretty new to THREE.js and trying to learn.