<div dir="ltr"><div><div><div><div><div><div><div>Hello,<br><br></div>I want to draw some rectangle in my viewer and select all points in a 3D point cloud scene inside that rectangle, i.e., I have some 2D shape in screen coordinates and want to select the 3D points that lie inside it in a 3D scene.<br><br></div>I know how to draw the rectangle, and I also know that this can be achieved in OpenGL by using the ProjectionMatrix and projection 3D points back to screen coordinates and check for intersection. My questions are the following:<br><br></div>- Does OSG provide any utility for this (NOTE: this is a point cloud!)<br></div>- After I seleted my points, what kind of operations can I do to them? Can I for instance delete them from the OSG container? <br></div>- Is this how OSG is supposed to be used? Or should I use my own containers and code, perform my point cloud operations on my own containers, and use OSG exclusively for rendering?<br><br><br></div>Thank you<br></div><br></div>