<div dir="ltr"><div>Hi Andrea,</div><div><br></div><div>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.</div><div><br></div><div>I would also strongly recommend upgrading 3.6.3, it even contains some nice improvement for KdTree building and intersections.<br></div><div><br></div><div>Robert.<br></div></div>