Visit all nodes that are downstream of a specific node in depth-first order and apply a user-supplied functor to each node.
More...
template<typename NodeT, Index LEVEL>
struct openvdb::v9_0::tools::DepthFirstNodeVisitor< NodeT, LEVEL >
Visit all nodes that are downstream of a specific node in depth-first order and apply a user-supplied functor to each node.
- Note
- This uses the same operator interface as documented in visitNodesDepthFirst().
-
The LEVEL template argument can be used to reduce the traversal depth. For example, calling visit() with a RootNode and using NodeT::LEVEL-1 would not visit leaf nodes.