algorithmic modeling for Rhino
Hi!
I have made a recursive tree using C# in grasshopper, see attached image for an idea.
What I want is to put the individual branches (lines) into a DataTree in C# a very literal fashion. So every branch in the tree model is a branch in the DataTree.
The branches don't always have the same number of sub-branches, so I might want to add 2, 3 or 4 sub-branches to each branch.
-How do I create a DataTree like this in C#?
-What I'd also like is to remove some of the branches at the top, then check if the branch below (the parent branch) has no child branches, and in that case remove it, and then do it recursively until I reach a branch that is not childless.
I think a starting point is something like this..:
DataTree<Line> myTree = new DataTree<Line>();
Tags:
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by