Re: [osg-users] Intersection returning a surface

2015-10-16 Thread Alberto Luaces
"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

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Intersection returning a surface

2015-10-15 Thread Tony Vasile
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.


Tony V

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=65364#65364





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org