Interface BSPTreeVisitor<P extends Point<P>,​N extends BSPTree.Node<P,​N>>

    • Method Detail

      • visit

        BSPTreeVisitor.Result visit​(N node)
        Visit a node in a BSP tree. This method is called for both internal nodes and leaf nodes.
        Parameters:
        node - the node being visited
        Returns:
        the result of the visit operation
      • visitOrder

        default BSPTreeVisitor.Order visitOrder​(N internalNode)
        Determine the visit order for the given internal node. This is called for each internal node before visit(BSPTree.Node) is called. Returning null or BSPTreeVisitor.Order.NONEfrom this method skips the subtree rooted at the given node. This method is not called on leaf nodes.
        Parameters:
        internalNode - the internal node to determine the visit order for
        Returns:
        the order that the subtree rooted at the given node should be visited