[osg-users] Retrieving geometry information about a loaded model

Mike Weiblen mike.weiblen at gmail.com
Wed Jul 16 16:25:10 PDT 2008


That is an extremely general question.  The essense of OSG is
accessing and manipulating that information: it's used for dispatching
OpenGL rendering commands, and for reading/writing a scenegraph to
basically any file format.  Have a look at the query methods of
osg::Geometry and how an osgDB::ReaderWriter serializes it to a file.
Use a NodeVisitor to find the Geometrys in the scene.

-- mew

On Wed, Jul 16, 2008 at 5:47 PM, Franclin Foping <fsfoping at yahoo.fr> wrote:
> Dear all,
>  I would like to know how I can work out geometry information of a given
> loaded model.
>  More specifically, I am looking for the following:
>  1 - The list of all vertices contained in the model.
>  2 - The normal at each vertex of the node
>  3 - The list of triangles of the model
>  4 - The topology of the model that is how the triangles obtained in 3 are
> connected.
>  I am anxiously waiting for your reply.
>  Best wishes,
>  Franclin.
> ________________________________
> Envoyé avec Yahoo! Mail.
> Une boite mail plus intelligente.
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Mike Weiblen -- Austin Texas USA -- http://mew.cx/

More information about the osg-users mailing list