Grasshopper

algorithmic modeling for Rhino

Hi everyone,

Just trying to do something fairly simple :

i'm testing the distance between a set of points and a particular point, if the distances are smaller than "x" then they are either true or false. I want to apply a condition, that if more than 3 points are smaller than "x" it triggers a multiplication factor.

The only part that I can't seem to write is how to trigger the multiplication if there are more than 3 "True" answers.

Hope thats well explained..

thanks 

Marco

Views: 900

Replies to This Discussion

Not sure if i got it right, i think you could use one of these

Could maybe just feed the booleans from the 'smaller than'-test into an Integer primitive. This converts True to 1 and False to 0. Then feed this into the Mass Addition component.Then test if that's more than 3. 

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service