Viewer - Interaction
    Preparing search index...

    Function gatherNodesForPattern

    • Recurse the scene tree downwards starting from the given node, gather all nodes that match the pattern, and add them to the result array.

      Parameters

      • node: ITreeNode

        The node to start traversing from. Typically this is the node of an output of a ShapeDiver model.

      • pattern: NodeNameFilterPattern

        The hierarchical pattern to check for. Each string of the pattern represents a regular expression for matching the node name.

      • outputApiName: string

        The name of the output API to be used for the concatenated node name.

      • result: { [nodeId: string]: { name: string; node: ITreeNode } }

        The result object, matching nodes will be added here.

      • count: number = 0

        The current index into the pattern array.

      • strictNaming: boolean = true

      Returns void