Hi Greg,

osgUtil::IntersectVisitor only supports line segment to polygon intersections, and does not support lines or point intersections.  To the later you can't use line segments to intersect, it is best to use a frustum, just like a mini view frustum.  There isn't code in the OSG to this specific picking task, but there are the various components that could be used to do it.

There is also a chance we'll see a osgUtil::Polytope/FrustumIntersectVisitor appear in a future version of the OSG, but right now its a case of rolling your own.

Robert.

On 10/11/06, Goldstein, Gregory A. <[EMAIL PROTECTED]> wrote:

Hello,

 

I have code that will display the coordinates of polygons that the mouse cursor points to.  This code computes the intersection of the mouse with the polygon.

 

I'm trying to do the same thing with point clouds, i.e. get the coordinates of points using the mouse.  But apparently points never intersect.  Is there another way to get these coordinates?

 

Thanks,

Greg

 


_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/


_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to