Skip to content

OpenBIMRL | Tree functions

Class path: tree.reduce

Reduce

reduce1.png

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

reduce2.png

Node representation with example values

Sample file