[osg-users] Intersect Point Cloud wth precision

Bruno Oliveira bruno.manata.oliveira at gmail.com
Thu Dec 22 09:02:02 PST 2016


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 lots of
intersections, which is not good for me since I need to get the neartest
intersection to my mouse, and if I pick the first intersection of the
polytope I am not guaranteed to have that. A way of doing this would be to
change the polytope size to, for instance, 1.0 or 0.5, but this sometimes
results in no intersections.

How can I get the cloud point that is neartest to the polytope's center?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20161222/fd7ba4cf/attachment-0002.htm>

More information about the osg-users mailing list