Johannes Brunen wrote:
> Hi,
> 
> Marcus Lindblom wrote:
>> Doesn't Node have an getIndexOfChild() or something similar?
> Didn't know that. But is it an O(1) operation?

Probably not. But for most uses (# of nodes < 100) it's probably fast 
enough to do a linear search.

>> Could perhaps be implemented as the first index of the choices field 
>> being -1 or -2?
> This is probably not such a good idea. Instead, I have choosen to add a
> switchMode field for that.

That works too. :)

> Finally, I have build a new core node named OSGMultiSwitch replacing
> OSGSelect.

Cool! Nice work on the whole thing! :)

Cheers,
/Marcus


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to