Hi Robert, one more question. I would like to implement a method in my core class to get vertices and indices to use both in osg geometry and in a wavefront writer. The problem is the array type. I don't want to write the same code twice one for the wavefront writer and one for osg geometry just because they use different array/vector types. The wavefront writer can use C arrays or std::vectors. I see that a C array can be used in a DrawElementsUShort constructor. On the other side setVertexArray gets an osg::Array as parameter. I'm trying to understand how to use a C array or a std::vector instead.
In any case at a certain point I have memory allocation for vertices and indices twice (the array I created and the copy for osg geometry). Regards, Gianni ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=60430#60430 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

