Igor Lebedev wrote:
_indices is osg::PrimitiveSet, so it throws an error:

error C2676: binary '[' : 'osg::PrimitiveSet' does not define this operator or 
a conversion to a type acceptable to the predefined operator

So i've got the wrong primitive set?

Not necessarily. What you have is the base class "PrimitiveSet". You'll need to cast it to one of its descendants ("DrawElementsUShort", for example). If you don't know what kind of primitive set it is, the PrimitiveSet base class has a getType() method that will tell you the type (it returns an enumerated type osg::PrimitiveSet::Type).

--"J"
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to