OpenBIMRL | Tree functions
Class path: tree.reduce
Reduce

Description
Removes the topmost root node of a tree and merges the branches below it. Can be used to remove linear sequences of root nodes.
Input
| Input | Name | Typ | Description |
|---|---|---|---|
| 0 | tree | Tree | Tree structure with linear root-node sequence. |
Output
| Output | Name | Typ | Description |
|---|---|---|---|
| 0 | flattenedTree | Tree | The tree is reduced by one root node. |
Use/Example