Grasshopper

algorithmic modeling for Rhino

Hi,

I've tried to place random L blocks on a grid. Program picks a random point from a point cloud, then picks 2 closest points of it. When I place a box for each point, I have a L block with 3 boxes. Next step, algorithm deletes these 3 points from point cloud, then picks a random point and 2 closest points again. I want to make a loop for these operations and want to continue the algorithm till there was no enough point. How can I make this?

You can see the multiplecopies at the attached image that I want to loop. I need a slider that makes multiple L blocks when I change it.

Thank you very much in advance!

Views: 12061

Attachments:

Replies to This Discussion

Try This, Its using Anemone to create the loops in Grasshopper. You will see its just your logic in a loop. I did a little edit to your grid as well so you could have more levels. 

Attachments:

That is fantastic! Thank you so much. This is excatly what I want! Another question; my grasshopper file is my old and more basic work. I have added new rule that deletes the non-L blocks like 3 boxes side-by-side. I make it with Dispatch. How can I integrate this rule into your codes? You can see it at my new attached file.

Attachments:

I was wondering about those , nice approach. Now added to the code, Slightly differently than your dispatch option as returns unused points that have failed back to the stack for another round. Hope that's fine.

Attachments:

Added a Jitter Component into the loop to shake up the order of the points with each loop. Makes an interesting additional change.

It works great Matt. Jitter makes it better and more effective, good idea. Thank you very much!

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service