Hi Rudi,

It's the Switch::traverse() method that decides which of the children
to traverse not the CullVisitor, so it's perfectly correctly for
CullVisitor to treat the switch as a group, as when the group is
traversed it'll be via the Switch::traverse() method.

Robert.

On Wed, Jan 14, 2009 at 11:49 AM, Wiedemann, Rudolf, OPS3
<[email protected]> wrote:
> Hi,
>
> "osgUtil::CullVisitor" handles switch-nodes the same way as group-nodes:
>
>   // osgUtil/CullVisitor.cpp, revision 9411, line 1093
>   void CullVisitor::apply(Switch& node)
>   {
>     apply((Group&)node);
>   }
>
> which means that disabled children are still visited.
> Is there any specific reason for that?
>
> Regards,
> Rudi
> _______________________________________________
> 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