Hi Andy, On 07/29/2010 09:18 AM, Andy Bartz wrote: > Hi @all, > > I'm experiencing some trouble with the osg::EdgeIterator. > > I am using it like this: > > //// osg::EdgeIterator edges; > > for (edges = geo->beginEdges(); edges != geo->endEdges(); ++edges) { ... } > //// > > Looks like the right way for me and I don't get any errors when compiling, > but somehow he is not even jumping into the for-loop. Testwise I added a > cout-statement to see if he's jumping in, but he is not. > > The funny thing is, when using the TriangleIterator the same way for > iterating over the Triangles of my geo, that TriangleIterator works just > fine. > > Do you have any ideas?
The EdgeIterator in its current implementation is a little misnamed, but so far it has not seen a lot of use so it has not affected anybody: It currently only handles GL_LINES primitives, everything else is ignored. It would not be too difficult to add the other primitives, if you want to give it a try take a look at OSGEdgeIterator.cpp. Sorry for the confusion Dirk ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ Opensg-users mailing list Opensg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensg-users