Hi Antoine, Have a look at the include/osgUtil/LineSegmentIntersector and PolytopeIntersectors, specifically the Intersection data structures they have all you are looking for :-)
Robert. On 4 September 2017 at 11:16, Antoine Rennuit <[email protected]> wrote: > Hi OSG forum, > > In the application I am developing I need to implement sub-selection, that > is picking of the elements that compose a drawable. e.g. for a mesh, that > would be selecting / picking the vertices or triangles that compose the > mesh. For instance, this makes it able to edit the mesh by updating its > vertices position. > > Is this possible to achieve with OSG? > > What I have seen so far in OSG (i.e. LineSegmentIntersector and > PolytopeIntersector) only returns the drawable, and it does not seem > possible to return the vertices or triangles composing the drawable. > > Kind regards, > > Antoine. > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=71619#71619 > > > > > > _______________________________________________ > 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

