Hi Andrea,

The osg::KdTree is design for the purpose of accelerating intersection
testing.  What you need to do is run the KdTreeBuilder visitor on your
subgraph to generate KdTree for each osg::Geometry in the subgraph, these
then get assigned automaticaly to each osg::Geometry as a Shape.  The
intersection traversals then automatically detect the KdTree when available
and use it instead of the raw primitive data into the Geometry.

I would also strongly recommend upgrading 3.6.3, it even contains some nice
improvement for KdTree building and intersections.

Robert.
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to