def traverse(self, include_self=False):
        """Traverse the scene graph.

        Args:
            include_self: whether to include the current node in the traversal

        Returns:
            a generator that yields :class:`Object3D` instances
        """
        if include_self:
            yield self

        for child in self.children:
            yield from child.traverse(include_self=True)
Traverse the scene graph.

        Args:
            include_self: whether to include the current node in the traversal

        Returns:
            a generator that yields :class:`Object3D` instances
        
fiftyone/core/threed/scene_3d.py