algorithmic modeling for Rhino
Grasshopper doesn't have a concept of meta data, so you cannot 'assign' in that sense. You also cannot combine the surface and the number into some larger data type, not unless you want to program such a type from scratch in code.
Rhino type geometry (surfaces, breps, meshes, curves) can have user data, but GH has no components for assigning or reading Rhino user data.
So what exactly do you require when you say "assign"? It's probably possible to re-order either the surface list or the number list so that they match up together.
Hi David,
Thank you for the quick reply. For me, I wanted to assign values on the surfaces so that if the surface has a certain value that I assigned to, the surface will be colored in a certain way. So what I wanted to create is somewhat like a visualization. An example would be like the image below.
So, if I assign the number 0.30 to the surface, the surface will have the color blue.
Hi Hyunsoo,
Thank you for your reply and help. For the color assigning in the image above, are the values manually assigned? Or is it directly from the surfaces?
It seems, there's no problem of data matching with your two data sets.
It depends what would you like to do to your boxes with these numbers.
You can manipulate those numbers(remapping is one way)to assign unique colours to your boxes or transform them.(move or scale.. whatever..)
That is to say, if your data sets are perfectly matched in terms of "Data Tree", then all you have to do is take good care of them.
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
© 2024 Created by Scott Davidson. Powered by