Re: [osg-users] Specifying indices of triangle vertices when creating osg::geometry

2017-12-21 Thread Alberto Luaces
"antiro black" writes: > I also looked at the primitive sets to see if I could specify indices > there but I couldn't figure it out. the example you are looking for is osggeometry: https://github.com/openscenegraph/OpenSceneGraph/blob/master/examples/osggeometry/osggeometry.cpp#L685 --

[osg-users] Specifying indices of triangle vertices when creating osg::geometry

2017-12-21 Thread antiro black
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