you need to write a node visitor and when you hit a Geode, then go over the
drawables. There is a functor somewhere that gets you triangles from the
drawables (have a look at TriangleFunctor)
-Nick


On Mon, Aug 30, 2010 at 9:07 PM, Sanat Talmaki <sanat.sch...@gmail.com>wrote:

> Hi,
>
> I am having trouble figuring out how I can get the list of triangles
> (vertices) that make up an osg object to use in another algorithm that needs
> a list of triangle vertices that make up the model. (I have seen the models
> I intend to use in osgviewer using the 'w' key and they are made up of only
> triangles.
>
> So if I am using either a .osg model or a model loaded through
> osgDB::readNodeFile(...), I would like to store in memory the list as above.
>
> I was hoping to get some tips on how I can start approaching this. (I hope
> I have been able to explain my problem clearly enough)
>
> Thank You
>
> Sincerely,
> Sanat.
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=31163#31163
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to