Grasshopper

algorithmic modeling for Rhino

Is there a way to plug n-number of booleans into a gate and have it generate true if ANY of the values happen to be true? In other words, a 'boolean minority' (assuming true will always only occur once in a set), or you could look at it as a 'gate or' function with a variable number of inputs, instead of 2 or 3?

This seems like an obvious answer....all I'm trying to do is approve points that occur within any of a set of regions, but the number of regions is variable. I'm sure there's a workaround that culls false values, etc.; I was just wondering if there was a simple boolean solution.

Views: 2266

Replies to This Discussion

Nevermind. Use inputs as 1's and 0's, mass addition, set result to true if value is greater than 0. I'll leave this open, in case anyone has a better answer...

That is the best answer.

--

David Rutten

david@mcneel.com

Poprad, Slovakia

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service