Torben,

My guess is that the quads are geometrically represented by two
triangles with a shared edge. I believe the intersector is returning a
ray/triangle intersection so one (that is hit) of the two triangles that
make up the quad is being returned.

This probably doesn't solve your problem but it may explain why you're
getting only 3 vertexes on return...

-Shayne

-----Original Message-----
From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Torben
Dannhauer
Sent: Tuesday, August 02, 2011 12:39 PM
To: osg-users@lists.openscenegraph.org
Subject: [osg-users] intersection with quad mesh: only 3 vertices
returned

Hi,

I have a mesh of quads. If i intersect them, it hits the face and
returns me the results (osgUtil::LineSegmentIntersector::Intersection&
result)

As I tried to access the indices I realized that it only returns 3
vertices.
( result.indexList.size() == 3 ) 
Is this a bug or do I miss something?
I would like to acces the 4 vertices of the quad to manipulate the
vertex I intersect next to.

Thank you!

Cheers,
Torben

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





_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or
g
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to