Grasshopper

algorithmic modeling for Rhino

Hi everyone,

I`m trying to test a list of numbers against a list of domains and I need to cross check each and every number with each and every domain value. How can I do this and get a final list with the same number of values of the list of numbers?

Views: 2940

Replies to This Discussion

If you wish to continue down this route then grafting the D input of Includes will get the cross referencing you require but you would then have to Flip Matrix and Mass Addition the results.

There is a component on the Maths Tab > Domain Section called Find Domain which should be better

Hi Danny, I couldn`t find this"Find Domain" could it have a different name?

I've Checked and it is definitely a Native Grasshopper component. Are you using version 0.8.0066? If so can you use the Create function by double clicking the canvas and typing "Find". If it shows up but you can not see it in the Ribbon you may have a custom ribbon displayed that will not update when new features are added.

Humm, I`m probably using an older version then. Mine is 0.8.0052

In which case there are three simple things you need to do:

Upgrade

Upgrade

Upgrade

:) failing that follow the graft > flip > Mass Addition route

Graft the points input. This will give you a list of booleans for each domain in a tree with brances for each point.

Mass addition is probably what you want to use. I will give you a single value that is larger than 1.0 if the z-value was in at least one of the domains. Flattening the tree gives you a list with one entry per point. Either use a comparison to get boolean values or try plugging it directly to the dispatch. 0.0 should be treated as false every other number as true.

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