Use osg::Geometry to store the vertex and index data. You'll need to specify an osg::PrimitiveSet to tell OSG how to render the data; osg::DrawElementsUShort might be a good PrimitiveSet for you to use.
Look at the osggeometry example program. -Paul > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy > Sent: Thursday, March 01, 2007 2:00 PM > To: osg users > Subject: [osg-users] Newbie Efficiency Question > > I have a very large model which I want to render in a more > efficient manner. What I have is this: > > (1) Vec3Array with the vertices's of my model. Where each > vertex is listed ONLY once. > (2) An int[] array with integer indices's into my Vec3Array > model that build the triangle polygons to give my model it's surface. > > Now my questions is this: What are the more efficient > classes and their methods (in osg*) to construct this very > large model and render it in OpenSceneGraph? > > Thanks, > Jeremy > > > > ______________________________________________________________ > ______________________ > Do you Yahoo!? > Everyone is raving about the all-new Yahoo! Mail beta. > http://new.mail.yahoo.com > _______________________________________________ > osg-users mailing list > [email protected] > http://openscenegraph.net/mailman/listinfo/osg-users > http://www.openscenegraph.org/ _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
