Yes, you can put all of them in a single Geometry and use a single PrimitiveSet such as DrawElementsUByte to draw them. Take a look at the osggeometry example, or load the cow.osg in an editor and see how it draws several triangles with few Geometry objects. Paul Martz Skew Matrix Software LLC http://www.skew-matrix.com <http://www.skew-matrix.com/> +1 303 859 9466
_____ From: [email protected] [mailto:[email protected]] On Behalf Of Ruqin Zhang Sent: Wednesday, February 04, 2009 9:32 PM To: OpenSceneGraph Users Subject: [osg-users] Triangular mesh with OSG Hi there, Here, I got a question about drawing 3D mesh with OSG. I have the following information available: (1) number of vertices (2) position of each vertex (3) number of triangular faces (4) indexes for vertices involved in each triangular face I can draw each single triangular face as an osg::Geometry and then add all of them as children into a huge osg::Geode. While, I don't want to do that. So, here I am just wondering if there is a way to put all these triangles into one osg::Geometry. BTW, do you guys have any information about some internet resources for 3D mesh parameterization, mapping or morphing sort of stuff? Thanks a lot! Ruqin
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

