Grasshopper

algorithmic modeling for Rhino

Hello everyone,

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

Views: 1090

Replies to This Discussion

Hi Khizer,

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:

  1. It was necessary for component developers to handle user data, which meant they could no longer use simple types such as Point3d or System.Int32, but instead had to always use the Grasshopper wrapping types, which is a major pain in the *ss.
  2. It is unclear what needs to happen to userdata when there is a conflict. Say for example you intersect two curves. 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? What would the UI look like.

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.

--

David Rutten

david@mcneel.com

Poprad, Slovakia

Interesting :)

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"? 

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service