Skip to content

OpenBIMRL | Tree functions

Class path: tree.createTracePairwise

Create Trace Pairwise

createTracePairwise1.png

Description

Creates new paths/traces based on lists with indexing values in pairs. Existing paths can be extended by appending the indices of the specified list to the path individually. In this way, paths can be created and extended as a collection.

Input

Input Name Typ Description
0 trace Path/Trace Indexed structure that describes the path within a tree structure.
1 extensions List A list of positive integer values that flow into the path or define a new path.

Output

Output Name Typ Description
0 modifiedTraces Path/Trace Extended or new path/trace

Use/Example

createTracePairwise2.png

Node representation with example values

Sample file