Re: [osg-users] Point Selection in Point Cloud

2016-04-06 Thread Filip Arlet
Hi, It really depends on how big your point cloud is. General rule is to create tree (kd-tree, octree, ...). Either multiple nodes or on big custom drawable with tree in it. If you create custom drawable, you can test if ray intersects tree node or polytope contains tree node. If you create tre

Re: [osg-users] Point Selection in Point Cloud

2016-04-04 Thread David Knipp
Hi Bruno, You can choose many different ways. OSG is not a collision detection library but it has some functionality you can play with. Also you can use bullet physics which is a free physics library. Also this is a pretty easy detection implementation and you can just do it on your own. 1. os

[osg-users] Point Selection in Point Cloud

2016-04-03 Thread Bruno Oliveira
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