algorithmic modeling for Rhino
Hi all,
How can you easily reference all "beta branches" of a "Alpha Path" if we think of complex branching in terms of {Alpha path, Beta_branch}
Below is my solution but it seems like making a Paths data tree shouldn't be necessary, and would fall apart if the tree grew to include gama or delta sizes: ie GH_Path = {alpha; beta; gama ; delta}
Tags:
Hi Nico
I waited with my answer because I was hoping someone else might understand. For now, I can only tentatively answer that I do not understand what you are trying to do and why. Sorry.
Could you elaborate? Especially having a precise goal in mind will help. If possible, please, do not duplicate existing Grasshopper components just by asking to rewrite them in Python because there are better things to do...
Thanks,
Giulio
--
Giulio Piacentino
for Robert McNeel & Associates
giulio@mcneel.com
Ok, thanks for responding.
Perhaps I made it unduly complicated, and am unaware of a some grasshopper components.
Try Two:
If you have a tree with branches
{0,0}
{0;1}
{1;0}
{2;0}
{2;1}
What grasshopper component (or python) allows me to sort these by the alpha value if we describe the path as {alpha, beta}.
So seeking alpha = 0 returns:{0;0},{0;1}
or across a tree can return groupings:( [{0;0},{0;1}] [{1;0}] [{2;0},{2;1}] )
I was hoping that there would be something more elegant then the grasshopper solution below.
In my work I have been using branches as Objects, branch items as attributes, I was trying to use the path as something that could represent some higher order attribute, that might improve efficiency. Something that might help in iteration, when different functions will be used depending on some object attribute. Perhaps it is a waste of time and its best to stick to keeping all information in the branch items, and have paths only operate as unique identifier for an object. Does this clarify my interest? If so, is it a waste of time?
much appreciated,
Nico
Hi Nico,
If I understand correctly, you want the positive part of the data passed through Tree Split with filter {0;?}.
Please see the discussion regarding Tree Split. To regroup, use the Path Mapper.
Giulio
--
Giulio Piacentino
for Robert McNeel & Associates
giulio@mcneel.com
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by