Hi Sanat, The way I would tackle the task would be to write a ClinderIntersector class along the lines of the existing osgUtil::LineSegmentIntersector. The only major difference would be how you do the intersection tests with the bounding spheres, and bounding boxes of the nodes during the IntersectionVisitor traversal, and the intersection tests of the cylinder against the geometry data found in the Drawable leaves.
Robert. On Thu, Mar 3, 2011 at 7:21 PM, Sanat Talmaki <[email protected]> wrote: > Hi, > > I want to test for intersection in my scene using a cylinder instead of a > line segment. > > For example if my object is on a terrain I want to highlight all features > that are within an imaginary cylinder around my object. > > I read about polytope intersector but it seems as though that is for planes > only or can I get cylinder intersector from there as well ? > > Any tips on how I can get started will be much appreciated. > > Thanks! > > Sincerely, > Sanat. > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=37298#37298 > > > > > > _______________________________________________ > 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

