Re: [osg-users] Intersect Point Cloud wth precision

2016-12-23 Thread Chris Hanson
Take the results from the PolytopeIntersector, project them to screen space, measure the distance from your mouse XY to the projected point, sort the result set by this metric and take the closest. On Fri, Dec 23, 2016 at 3:22 AM, Robert Osfield wrote: > HI Bruno, > >

Re: [osg-users] Intersect Point Cloud wth precision

2016-12-23 Thread Robert Osfield
HI Bruno, For a point cloud you may be best to implement your own osgUtil::Intersector, the design is meant to facilitate this, LineSegmentIntersector and PolytopeIntersector are both examples of subclasses from Intersector so you could use these as inspriation. Robert On 22 December 2016 at

[osg-users] Intersect Point Cloud wth precision

2016-12-22 Thread Bruno Oliveira
Hello, I have a point cloud and need to get the intersection of my mouse with that point cloud. For that I use a PolytopeIntersector. I use this intersector because I found out that a LineSegmentIntersector will not do the trick. I set the polytope width and height to 5.0 and therefore I get