<div dir="ltr"><div><div><div>Hi Julie,<br><br></div>You can't pass any different arguments to a NodeCallback::operator() methods as it's the standard traversal that calls the method.<br><br></div>What you do get is the Node* and NodeVisitoro* pointers to the node that it's attached to and the visitor that is traversing, you can usually use these to determine what data is relevant.<br><br></div><div>You don't say much about what you are trying to do so it's not possible to make any specific suggestions. What is the vertex array assigned to? Can you get it from the Node*?<br></div><div><br><br></div>Robert.<br><div><div><div><br><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 25 August 2015 at 10:52, Julie Green <span dir="ltr"><<a href="mailto:laroux92@mail.ru" target="_blank">laroux92@mail.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
Is there a way of passing arguments to operator method of NodeCallback? I have a vertex array and need to modify it every frame.<br>
<br>
Thank you!<br>
<br>
Cheers,<br>
Julie<br>
<br>
------------------<br>
Read this topic online here:<br>
<a href="http://forum.openscenegraph.org/viewtopic.php?p=64885#64885" rel="noreferrer" target="_blank">http://forum.openscenegraph.org/viewtopic.php?p=64885#64885</a><br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a><br>
</blockquote></div><br></div>