What is the best way to match “Tree A” to structure of “Tree B” by adding nulls? I would like to get the effect you can see on the “Tree C”.
Welcome to the Forum! You can try to do this:
Anyway, lot of options to do that!
Add_Tree.gh (15.2 KB)
Thanks for your reply! I was rather thinking about GH component or add-on component
Here is a Python option:
for i in range(y.BranchCount): if not x.PathExists(y.Path(i)): x.Add(None,y.Path(i)) a = x
MatchTree.gh (12.3 KB)
You can make a cluster with all the components! That’s another option.
Sure, we can, but imo one Python/C# component is more elegant solution
Here’s another example.
MatchTreeStructure_re.gh (12.3 KB)