[osg-users] Intersection returning a surface

Alberto Luaces aluaces at udc.es
Fri Oct 16 00:28:29 PDT 2015


"Tony Vasile" writes:

> Hi,
> Is it is possible to have an intersection query return the surface or
> triangle that has been hit rather than a point? I have seen
> PlaneIntersector but it seems to return a list of points rather than
> the surface that contains those points. Correct me if I am wrong. Any
> help would be appreciated.

Hi, Tony.  The intersection objects returned also hold the drawable and
the index of the primitive being hit. See:

http://trac.openscenegraph.org/documentation/OpenSceneGraphReferenceDocs/a00424.html

-- 
Alberto




More information about the osg-users mailing list