On 4 June 2012 16:01, Bob Slobodan <[email protected]> wrote:
> And what I would like to do now is to get the list of "triangles" from my 
> geometry.

You original asked for vertices... now you want triangles... is that
because you now know how to get the vertices, or is it that you now
know what you want more precisely??

> By looking at the code of the OSG tesselator, I understood that it creates 
> new PrimitiveSet but I can't figure out how exactly how to do it.

How to do what?  Do the tessellation - your code you posted does that
so I presume you mean how do you get the PrimitiveSet's which is
pretty easy just look at the header for osg::Geometry and you'll find
getPrimitiveSets().

Is that you are asking how to get the primitive data from a
PrimitiveSet???  Again go have a look at the headers it'll tell you
how to access the data within.

Might I also ask you for what purpose you want to know the
vertices/primitive data?  What are you trying to do with it?

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to