Hi everybody,

I have a scene with, among other things, a Geometry node which holds many
PrimitiveSet(QUADS). And I need to know which quad has been picked by the
user.

I've coded something similar to the osgPick example, and I get the HitList,
with the Hit I want. The problem is that I can only identify the geode and
the drawable (the Geometry). I've seen the variable Hit::_primitiveIndex,
but it doesn't seem to have the PrimitiveSet index as I expected. Looking at
the code it seems to have the index in the "triangulated" scene (with the
quads made two triangles).

Is there any way I can get the quad touched?

Thanks in advance for your help.

Ignacio Garcia


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

Reply via email to