Grasshopper

algorithmic modeling for Rhino

Hi All,

I'm trying to create a pattern that is based upon a offset grid of circles and when another line, laid out by a graph map, passes close by to a circle it will change in diameter. I've gotten pretty far but I've come unstuck in one area.

I've set up a condition based on a Crv CP and I can cull out the circles that I want to change in diameter, but I am unable to isolate the circles that are to remain the starting size. See attached images below.

Starting grid of circles with lines to test.

Using a Cull to isolate the circles closest to the lines.

And the result when I plug a Not Gate into it.

I've used Gate Not previously and for some reason I can't seem to get it working here. I believe it might be to do with the tree structure coming out of the Crv CP. Any help would be greatly appreciated.

I've also attached my GH file for people to look into.

Thanks!

Views: 906

Attachments:

Replies to This Discussion

If you use the Dispatch Component you will split your list by the same Boolean Pattern. Also for future reference you can use an <Invert> I/O Modifier instead of the Gate Not component.

I will have a look at your definition and see I can glean from it as to why it's not working as you expect.

Ok your logic was a bit off. you needed to first weed down to get which line you are measuring to for each circle then check to see if it falls below your tolerance and then dispatch the circle based on this.

EDIT: I've actually simplified it now to not bother with the lines just distances

Attachments:

Thanks Danny, I really appreciate your help. I thought it might have been something like this, I'll have a look at your solution tonight.

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2025   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service