Determine specific quad from intersection
I have a very big object that consists of a lot of quads. In Vizard I'm creating this object by calling viz.startLayer(viz.QUADS), then a couple hundred (or thousand) viz.vertex calls, then viz.endLayer (splitting this up into multiple layers is unfortunately not an option for me in this context).
Now I would like to perform a line intersection on this big object and get the specific quad that was intersected. Is this possible in Vizard?
When I do an intersection now, the lowest level intersected object I get back is the big object. I could do my own math to make a line-plane intersection on each individual quad in the big object, but it seems to be duplicate work, seeing as Vizard / OpenGL already knows under the hood which quad was intersected, right? Is there any way of getting this information?
|