Hi,
thanks for your fast answer. So what is the difference then betweehn the Edge 
and the LineIterator? I was trying that one too and was expierencing the same 
problems.

I'm trying to read out the edges of triangles. What would be the best way to do 
so?

thanks,

greets Andy

--- Dirk Reiners <dirk.rein...@gmail.com> schrieb am Do, 29.7.2010:

Von: Dirk Reiners <dirk.rein...@gmail.com>
Betreff: Re: [Opensg-users] Problems with EdgeIterator
An: opensg-users@lists.sourceforge.net
Datum: Donnerstag, 29. Juli, 2010 14:45 Uhr


    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


------------------------------------------------------------------------------
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

Reply via email to