Working with datasets, lists and trees is hard. I am puzzling on this one for couple of days now and could need some help.
I have 3 strings intersecting through 2 instances of an object. I want to orient the intersecting points to another plane, to design slots in the object. I have it all OK for 1 string + 2 objects. As soon I add the other 2 strings, the datasets become a bit more complex and I cannot find a way to get the data structured the way I need it.
In the panel (left) you see the intersecting points are nicely ordered in 6 branches. Two for every intersection on each string.
What I need is, that the output (after orienting) is structured the same way.
Somehow any thing I can up with, ends with loosing the connection to the three strings, so I end up with all kinds of trees with 1 → 14 branches, but never the wanted 6 branches as in the left.
datatree puzzle.gh (77.0 KB)
Did you try merge
instead of entwine? Then unflatten
the merged tree to match it to the original tree prior to the orient operation.
Is that what you were asking about?
I never thought/found the “unflatten tree” (that does the trick). So happy with that.
Could the part in between also be simplified (mostly to learn howto).
- Not using the two orient components + explode tree of the two planes
- organise the original data in such a way that the correct plane is used without splitting into two branches
?
1 Like
Based on what you have, I think this:
datatree puzzle.gh (92.6 KB)
If your “A” planes didn’t have the order they currently have (top “A” plane corresponds to top points, bottom “A” plane corresponds to bottom points) then you’d probably have to make sure they do. So all okay for now.
They are in correct order, but I would not know how to change this.
Reverse bottom “A” Plane, was my thought, but that does not give a change.
NB: Very happy with result. Much more simple (Ockham worthy I would say)
1 Like