[osg-users] osgUtil::IntersectionVisitor, information on polygon intersected
aluaces at udc.es
Wed Sep 17 13:03:18 PDT 2008
El Miércoles 17 Septiembre 2008ES 20:02:06 Jean-Sébastien Guay escribió:
> I think ratioList is the barycentric coordinates of where the hit
> occurred on the polygon (i.e. if it was a triangle that was hit, there
> will be 3 ratios in ratioList, which you can then use to find out where
> in the triangle the hit occurred by multiplying the 3 vertices of the
> triangle by the 3 ratios) but I'm not sure.
You are right, this is correct.
> If that's the case, you can
> do the same with the triangle's texture coordinates at the 3 same
> vertices and thus get where in the texture the hit occured.
I'm not sure about this one, but it should give a reasonable approximation
More information about the osg-users