[osg-users] Picking Polygons?

Martin Scheffler martinscheffler at googlemail.com
Sat Mar 28 04:32:56 PDT 2009

Hi all,

I have a geometry containing a number of polygons, each a

I want to use the LineSegmentIntersector to pick a polygon of the mesh.
Everything works fine, only I can't make sense
of the primitiveIndex value of the Intersection class.

When I pick my mesh, I get these values:

Intersection.IndexList: 118, 64, 67
Intersection.PrimitiveIndex: 142
Geometry.NumPrimitiveSets: 66

So the picked PrimitiveIndex is 142, but there are only 66 polygons in the
How can I get to the polygon?

Thank you!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20090328/2ea61519/attachment-0002.htm>

More information about the osg-users mailing list