Hi, I want to create a specific mesh using osg. I have a set of vertices and a set of indices for the triangles which the mesh should consist of.
I tried using osg::geometry to create this mesh but I can't figure out how to specify the triangle vertex indices. Do I need an osg::IndexArray for this? How do I set it? There is a setVertexArray() member function for osg::geometry but nothing to specify indices. I also looked at the primitive sets to see if I could specify indices there but I couldn't figure it out. I tried both google and going through the example code without any success. Any help would be much appreciated! Thank you! Cheers, antiro ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=72618#72618 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

