HI Giannu,

I can't work out what your "one more question" is, I've re-read what you
written and am just as confused.

Robert.


On 24 July 2014 11:43, Gianni Ambrosio <[email protected]> wrote:

> Hi Robert,
> one more question.
>
> I would like to implement a method in my core class to get vertices and
> indices to use both in osg geometry and in a wavefront writer. The problem
> is the array type. I don't want to write the same code twice one for the
> wavefront writer and one for osg geometry just because they use different
> array/vector types.
> The wavefront writer can use C arrays or std::vectors.
> I see that a C array can be used in a DrawElementsUShort constructor.
> On the other side setVertexArray gets an osg::Array as parameter. I'm
> trying to understand how to use a C array or a std::vector instead.
>
> In any case at a certain point I have memory allocation for vertices and
> indices twice (the array I created and the copy for osg geometry).
>
> Regards,
> Gianni
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=60430#60430
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to