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 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?
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

