WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Determine specific quad from intersection (https://forum.worldviz.com/showthread.php?t=5634)

Novakin 02-12-2016 06:05 AM

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?

Jeff 02-19-2016 01:25 AM

I don't see any way to get this information directly but I'll check with a developer in case I'm missing something.


All times are GMT -7. The time now is 10:36 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2021, vBulletin Solutions, Inc.
Copyright 2002-2018 WorldViz LLC