On 5/22/06, Dorian Dussel <[EMAIL PROTECTED]> wrote:
I've got a file like this :...PrimitivesSets 4{DrawElementsUShort TRIANGLE_STRIP 4{1 2 0 3}.....I just want to extract from this file the GL_mode ( TRIANGLE_STRIP ) and the indices ( 1, 2, 0 and 3 ). How can I do ?I manage to extract the parameter "DrawElementsUShort" with the className() function but after ....?
Use C++ ... dynamic_cast<DrawElementsUShort*>(geometry->getPrimitiveSet());
Robert.
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
