HI Petr, The ray intersection testing goes right down to the polygon level when testing for intersection so "expanding" the bounding box won't make any difference.
Perhaps what you are looking for is the PolytopeIntersector, this allows you to create a screen aligned polytope that can intersection objects within the polytope. Robert. On 28 March 2014 21:00, Petr Svoboda <upd...@seznam.cz> wrote: > Hi, > > I would like to ask if there is some way how to create bigger bounding box > over some model to make it easier to pick it/ intersect with. > For example if there is a cow.osg model and I want to pick it then how do > it in a way that I dont need to click with my mouse exactly on that model > but a bit "next to it". > Is that was is osg::BoundingBox made for? Or the purpose of BoundingBox is > just for culling etc.? > I would like to use osg::LineSegmentIntersector + osg::IntersectVisitor. > > Thank you! > > Cheers, > Petr > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=58760#58760 > > > > > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org