Select points using SelectionBox

Hello guys, i’m kinda new to three.js and i’ve been stuck on a problem for a week :frowning_face_with_open_mouth: . Basically i have a bunch of points that i need to select with a rectangle box. I found SelectionBox from three.js ( three.js webgl - box selection ) which seemed it was exactly what i needed, the only problem is that im integrating all the points into the geometry using the position attribute, and the SelectionBox regards all the points as one Three.Points. Is there any way of knowing which points were selected without having to render every point as a separate Points Object? I created this sandbox to show the problem ( check the console log after selecting multiple points ) Three js selection box points help - CodeSandbox

1 Like