generative modeling for Rhino
Is there a way to add attributes to geometry - point/ curves ( like name, location/ area name, land-use type and others) and then filter them on the basis of these assigned attributes, like choosing curves with certain land-use type, or selecting curves from a certain area ( i know this can be done with containment component) but i want to base the selection using attributes
I began adding user data support for Grasshopper data a while back, but I removed it again when I ran into two problems I couldn't solve, to wit:
The good news is that both problems may disappear with a single solution. If I can figure out how to transfer user data from inputs to outputs then I do not have to make component developers responsible for doing this.
Woah... This sounded very simple turns out to be a complex issue.
"One has UserData attached to it marking it as "Site=A", the other one is associated with "Site=K". What user data (if any) should the intersection points have? Both? Neither? User specified?"
This is a very interesting question since it would be difficult to generalize. However, i feel in most cases it would be appropriate to assign the derived data to child geometry inherited from the parent interacting geometries. Say when intersecting Curve "Site=A" and "Site=K" the interaction points have Point "Site=AK" or "Site=A,K"
Then again, what if there is already user data "Site=AK"?