I have done this in the past. All depends of the amount of data you have. If there is not too much of it you can do it with Polytope, otherwise consider using selection buffer. It performs well for point and line picking
Nick On Thu, Feb 14, 2008 at 5:52 PM, Jean-Sébastien Guay < [EMAIL PROTECTED]> wrote: > Hello Samuele, > > > i am newbie for OSG; my initial goal is write a program > > to load point could file and pick a point. > > I tried to use the example osgpick with .3dc file format. > > The program osgpick reads the file and displays the point cloud > > but does not select any point. > > In addition to what Adrian said (that osgpick focuses on triangles), I > believe (but have never done it, so I might be wrong) that you can pick > points using a PolytopeIntersector. Unfortunately this is not very > documented. Have a look at how the osgpick example's source sets up a > LineSegmentIntersector, and try to do the same thing for a > PolytopeIntersector (setting up a valid polytope for what you want). > > Hope this helps, > > J-S > -- > ______________________________________________________ > Jean-Sebastien Guay [EMAIL PROTECTED] > http://www.cm-labs.com/ > http://whitestar02.webhop.org/ > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > -- - Nick
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

