On 7 May 2010 15:44, Andrew Cunningham <andr...@mac.com> wrote:

>
>
> As suggested, perhaps instead of a comparison with 0, we could have a new
> member variable "traversalMaskResult" which is used for the comparison.
> Backward compatibility would be a bit tricky as we want a == with the
> traversalMaskResult. Need to do some bit-twiddling thinking!
>
>
I was thinking along those lines when I hit this problem, but on reflection
I don't think it's the best approach.

I think it would be better to have callback support in the intersection
visitor, ie a 'should traverse' callback.

That way traversal behaviour can be fully customised, we don't have to have
a big argument about
how the node make should be interpreted and it stays backwards compatible.

After all, it doesn't really matter what scheme is implemented, it's always
going to wind up being wrong
for somebody.

-- 
http://www.ssTk.co.uk
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to