Dorian Dussel schrieb:

Hello,
How can I get the coordinates of my vertices ?
I did :
osg::Array* array = myGeometry->getVertexArray();

osg::Vec3Array* varray = NULL;
if (varray = dynamic_cast<osg::Vec3Array*>(array) ){
   osg::Vec3 myvec = varray[0];
   //Now you can work with the vector.
//If you need all of the vectors, be sure to check the bounds of the array!
}

I´ve never needed this, but this should work.

If you have not worked with stl-containers before, be sure to read about them, especially about std::vector as a background. Have a look into osg/include/array!

Regards,

Andreas



But after I don't know !!
Excuse-me for my newbie's questions but maybe it could be useful for others newbies !! Thanks !!! Dorian

------------------------------------------------------------------------
*Faites de Yahoo! votre page d'accueil sur le web* pour retrouver directement vos services préférés : vérifiez vos nouveaux mails, lancez vos recherches et suivez l'actualité en temps réel. Cliquez ici <http://us.rd.yahoo.com/mail/mail_taglines/yahoofr/*http://fr.yahoo.com/set>.

------------------------------------------------------------------------

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/



--
Andreas Goebel

Visit http://www.raumgeometrie.de to take a look at Archimedes Geo3D, a program for dynamic geometry in three dimensions!

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to