Hi Zhouhan, LineSegmentIntersector is only able to intersect surfaces. For points and lines you need to use another Intersector, either a custom one or the osgSim::PolytopeInersector. The PolytopeIntersector allows you to use a collection of planes to set up the picking region.
Robert. On 6 April 2016 at 09:12, Han Zhou <[email protected]> wrote: > Hi all, > > I'm working on an CAE software in which users need to setup some params on > the boundary. I extract point, line, and face elements so that users can > pick and choose them, and it will give a feedback, like change color. > I referenced osgpick example and the OpenSceneGraph 3 cookbook, for > surface picking, it is easy. Now the problem is, to pick a point or line, > which is the best way to implement it? do I need to implement a Intersector > subclass like LineSegmentIntersector? > > Thank you! > > Cheers, > zhouhan > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=66741#66741 > > > > > > _______________________________________________ > 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

