Hi Robert, If you want to just intersect certain parts of the scene graph you can use a combination of NodeMask on the nodes and TraversalMask on the NodeVisitor/IntersectionVisitor, the two masks and logically "AND"'d to decide on whether to traverse a subgraph or not.
Alternatively you just start your traversal at the Terrain/TerrainTile nodes themselves. Robert. On Wed, Oct 20, 2010 at 9:54 AM, Robert Gosztyla <[email protected]> wrote: > Hi Robert :), > > Yes, i was investigation this sample. But there is used intersect visitor > for camera (view->getCamera()->accept(iv);), what means for me visiting all > visible nodes on scene. And if i have terrain with lot of trees, buildings > etc. and i just want to edit terrain geometry? Isn't a little bit nonsense to > check everything? Isn't faster to create visitor to visit only terrain nodes > and inside terraintile node check intersections? > > Thank you! > > Cheers, > Robert > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=32897#32897 > > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

