Hi Robert,

> 
> Thread safety is the key reason behind not using a static cache.
> 

Oops I missed that point :)



> 
> The other solutions would be to pass in the DatabaseCacheReadCallback
> to the static method so that it could be used by the intersection
> traversal so enable the intersection to keep reusing the cache.
> 


Yes, sounds good. I'll build my "TerrainQuery" class with support for HAT and 
HOT. To avoid the extra calculations for HOT I'll refactor 
computeIntersections(..) function.

Thanks for your help,

Torben



Thank you!

Cheers,
Torben

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=41461#41461





_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to