Re: [osg-users] Same vertices selected multiple times

2018-01-16 Thread Antoine Rennuit
Hello Julien, Thanks for your detailed answer, it is very appreciated! Cheers, Antoine. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=72765#72765 ___ osg-users mailing list

Re: [osg-users] Same vertices selected multiple times

2018-01-15 Thread Julien Valentin
Hi Antoine You've totally get it :) I would add that TemplatePrimitiveIndexFunctor is your friend for this use case Cheers arennuit wrote: > Hello and thanks for your answer, > > What you mean is that I should share the vertices when building the > osg::Geometry, right? > > This is possible

Re: [osg-users] Same vertices selected multiple times

2018-01-15 Thread Antoine Rennuit
Hello and thanks for your answer, What you mean is that I should share the vertices when building the osg::Geometry, right? This is possible indeed, but then OSG would still select faces in the osgUtil::PolytopeIntersector, and I would still have to convert the faces into vertices, right? So

Re: [osg-users] Same vertices selected multiple times

2018-01-12 Thread Julien Valentin
Hi Antoine No magic here... Either you share vertices among triangles else you manage yourself duplicates during selection Cheers arennuit wrote: > Dear OSG forum, > > I have a vertices selection problem (these are the vertices of a mesh). When > I select vertices, each vertex appears

[osg-users] Same vertices selected multiple times

2018-01-11 Thread Antoine Rennuit
Dear OSG forum, I have a vertices selection problem (these are the vertices of a mesh). When I select vertices, each vertex appears multiple times in my selection (e.g. if I select 3 vertices, there are actually 9 entries in the selected vertices array - each vertex being duplicated).