[osg-users] Point Selection in Point Cloud

Bruno Oliveira bruno.manata.oliveira at gmail.com
Sun Apr 3 02:52:06 PDT 2016


Hello,

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.

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:

- Does OSG provide any utility for this (NOTE: this is a point cloud!)
- After I seleted my points, what kind of operations can I do to them? Can
I for instance delete them from the OSG container?
- 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?


Thank you
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20160403/5920f8f9/attachment-0001.htm>


More information about the osg-users mailing list